joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4251f0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [0x96a830]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4252d8
sub esp, 0x1c
mov edx, dword [esp + 0x20]
mov ecx, dword [edx + 4]
mov eax, dword [esp + 0x24]
cmp eax, ecx
jae 0x4252d2
mov ecx, dword [edx]
lea ecx, [ecx + eax*8]
mov dword [esp], ecx
call fcn.00425630
movzx eax, word [esp + 4]
movzx ecx, word [esp + 6]
mov edx, dword [esp + 8]
movzx ebx, byte [esp + 0xc]
mov word [esp + 0x10], ax
mov word [esp + 0x12], cx
mov dword [esp + 0x14], edx
mov byte [esp + 0x18], bl
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x2c]
lea edx, [esp + 0x10]
mov dword [esp], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.00425710
movzx eax, byte [esp + 0x18]
test al, 2
je 0x425286
cmp word [esp + 0x10], 0x1f0
jbe 0x425286
and eax, 0xfffffffd
nop
mov byte [esp + 0x18], al
mov edx, dword [esp + 0x20]
mov ecx, dword [edx + 4]
mov eax, dword [esp + 0x24]
cmp eax, ecx
jae 0x4252cd
mov ecx, dword [edx]
lea eax, [ecx + eax*8]
movzx ecx, word [esp + 0x10]
movzx edx, word [esp + 0x12]
mov ebx, dword [esp + 0x14]
movzx ebp, byte [esp + 0x18]
mov dword [esp], eax
mov word [esp + 4], cx
mov word [esp + 6], dx
mov dword [esp + 8], ebx
xchg ebp, eax
mov byte [esp + 0xc], al
xchg ebp, eax
call fcn.004256a0
add esp, 0x1c
ret
call fcn.0046bdc0
call fcn.0046bdc0
nop
call fcn.0046a980
jmp fcn.004251f0
Function at 0x4252f0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [0x96a830]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x425424
sub esp, 0x20
mov edx, dword [esp + 0x24]
mov ecx, dword [edx + 4]
mov eax, dword [esp + 0x28]
cmp eax, ecx
jae 0x42541e
mov ecx, dword [edx]
lea ecx, [ecx + eax*8]
mov dword [esp], ecx
call fcn.00425630
movzx eax, word [esp + 4]
movzx ecx, word [esp + 6]
mov edx, dword [esp + 8]
movzx ebx, byte [esp + 0xc]
mov word [esp + 0x14], ax
mov word [esp + 0x16], cx
mov dword [esp + 0x18], edx
mov byte [esp + 0x1c], bl
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x2c]
lea edx, [esp + 0x14]
mov dword [esp], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.00425800
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x28]
cmp edx, ecx
jae 0x425417
mov ecx, dword [eax]
lea ecx, [ecx + edx*8]
movzx ebx, word [esp + 0x14]
movzx ebp, word [esp + 0x16]
mov esi, dword [esp + 0x18]
movzx edi, byte [esp + 0x1c]
mov dword [esp], ecx
mov word [esp + 4], bx
mov word [esp + 6], bp
mov dword [esp + 8], esi
xchg edi, eax
mov byte [esp + 0xc], al
xchg edi, eax
call fcn.004256a0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
lea eax, [ecx + eax - 1]
shl eax, 0xd
mov ecx, dword [esp + 0x28]
shl ecx, 0x16
add eax, ecx
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x24]
cmp dword [ecx + 0x28], eax
jae 0x4253da
mov dword [ecx + 0x28], eax
lea eax, [ecx + 0x20]
mov dword [esp], eax
call fcn.00431e40
mov eax, dword [esp + 0x10]
cmp dword [esp + 4], eax
jae 0x425413
mov ecx, dword [esp + 0x24]
add ecx, 0x20
nop
mov dword [esp], ecx
xor ecx, ecx
sub ecx, eax
mov eax, 0
sbb eax, 0
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
call fcn.00402be0
add esp, 0x20
ret
mov eax, edx
call fcn.0046bdc0
call fcn.0046bdc0
nop
call fcn.0046a980
jmp fcn.004252f0
Function at 0x42b840
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [0x96a830]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x42b9b0
sub esp, 0x14
mov eax, dword [esp + 0x18]
movzx ecx, byte [eax + 6]
cmp cl, 2
ja 0x42b940
cmp cl, 1
je 0x42b8d2
cmp cl, 2
jne 0x42b999
mov ecx, dword [eax + 8]
mov dword [esp], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], ecx
call fcn.00430dd0
nop
nop
lea eax, [0x94ece0]
mov dword [esp], eax
call fcn.0040a310
mov eax, dword [0x94ec84]
sub eax, dword [0x94ec68]
nop
mov dword [0x94ec84], eax
mov eax, dword [0x94ec74]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov dword [0x94ec74], ecx
nop
lea eax, [0x94ece0]
mov dword [esp], eax
call fcn.0040a510
jmp 0x42b995
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov ebx, dword [eax + 0x10]
mov ebp, dword [eax + 0x14]
mov esi, dword [esp + 0x1c]
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
call fcn.00416cf0
nop
nop
lea eax, [0x94ece0]
mov dword [esp], eax
call fcn.0040a310
mov eax, dword [0x94ec5c]
sub eax, dword [0x94ec40]
nop
mov dword [0x94ec5c], eax
mov eax, dword [0x94ec4c]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov dword [0x94ec4c], ecx
nop
lea eax, [0x94ece0]
mov dword [esp], eax
call fcn.0040a510
jmp 0x42b995
cmp cl, 3
jne 0x42b94b
mov byte [eax + 8], 1
jmp 0x42b995
cmp cl, 4
jne 0x42b999
nop
nop
lea eax, [0x94ece0]
mov dword [esp], eax
call fcn.0040a310
mov eax, dword [0x94ecd4]
sub eax, dword [0x94ecb8]
nop
mov dword [0x94ecd4], eax
mov eax, dword [0x94ecc4]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov dword [0x94ecc4], ecx
nop
nop
lea eax, [0x94ece0]
mov dword [esp], eax
call fcn.0040a510
add esp, 0x14
ret
lea eax, [0x722ebe]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.00439730
nop
call fcn.0046a980
jmp fcn.0042b840
Function at 0x4584e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [0x96a830]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x45865a
sub esp, 0x10
mov ecx, dword [esp + 0x18]
test ecx, ecx
jbe 0x458650
mov edx, dword [esp + 0x14]
movzx ebx, byte [edx]
test ebx, ebx
jne 0x45853a
movzx ebp, byte [esp + 0x28]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x45853a
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov byte [esp + 0x38], 0
add esp, 0x10
ret
test ebx, 0x80
je 0x45854d
xor eax, eax
xor ebx, ebx
xor ebp, ebp
jmp 0x458627
mov eax, 1
mov ebp, ebx
and ebx, 1
neg ebx
shr ebp, 1
xor ebx, ebp
mov ebp, dword [esp + 0x24]
add dword [ebp], ebx
cmp ecx, eax
jb 0x45861b
sub ecx, eax
mov ebx, dword [esp + 0x1c]
sub ebx, eax
mov ebp, ebx
neg ebx
sar ebx, 0x1f
and eax, ebx
lea ebx, [edx + eax]
test ecx, ecx
jbe 0x458612
movzx edx, byte [edx + eax]
test edx, 0x80
je 0x4585a0
mov dword [esp + 0xc], ecx
xor eax, eax
xor edx, edx
xor esi, esi
jmp 0x4585e3
mov eax, 1
cmp eax, ecx
ja 0x4585d7
mov esi, dword [esp + 0x20]
add dword [esi], edx
sub ebp, eax
sub ecx, eax
mov edx, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and eax, ebp
add eax, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov byte [esp + 0x38], 1
add esp, 0x10
ret
call fcn.0046be20
lea esi, [ecx + 7]
mov ecx, dword [esp + 0xc]
cmp eax, ecx
jae 0x45860d
movzx edi, byte [eax + ebx]
xchg edi, eax
mov byte [esp + 0xb], al
xchg edi, eax
and edi, 0x7f
mov ecx, esi
shl edi, cl
inc eax
or edx, edi
movzx edi, byte [esp + 0xb]
xchg edi, eax
test al, 0x80
xchg edi, eax
jne 0x4585dc
mov ecx, dword [esp + 0xc]
jmp 0x4585a5
call fcn.0046bdc0
xor eax, eax
mov ecx, eax
call fcn.0046bdb0
call fcn.0046be20
lea ebp, [ecx + 7]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
jbe 0x45864b
movzx esi, byte [eax + edx]
mov edi, esi
and esi, 0x7f
mov ecx, ebp
shl esi, cl
inc eax
or ebx, esi
xchg edi, eax
test al, 0x80
xchg edi, eax
jne 0x458620
mov ecx, dword [esp + 0x18]
jmp 0x458552
call fcn.0046bdc0
xor eax, eax
mov ecx, eax
call fcn.0046bdb0
nop
call fcn.0046a980
jmp fcn.004584e0

Function at 0x45fe20
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, dword [0x96a830]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x45febb
sub esp, 0x30
lea ecx, [esp + 0x34]
mov dword [esp + 4], ecx
mov edx, dword [0x96a830]
mov edx, dword fs:[edx]
mov edx, dword [edx]
mov dword [esp + 8], 0
lea edi, [esp + 0xc]
xor eax, eax
call fcn.0046bfe7
lea ecx, [0x45fed0]
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 + 0x3c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0xc]
mov dword [esp], ecx
call fcn.0046a890
mov ecx, dword [esp + 8]
mov dword [esp + 0x44], ecx
add esp, 0x30
ret
call fcn.0046a980
jmp fcn.0045fe20
Function at 0x46bc40
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 [0x96ace0]
aesenc xmm0, xmm0
cmp ebx, 0x10
jb 0x46a3bb
je 0x46a40e
cmp ebx, 0x20
jbe 0x46a414
cmp ebx, 0x40
jbe 0x46a45a
jmp 0x46a4fb
test ebx, ebx
je 0x46a404
add eax, 0x10
test ax, 0xff0
je 0x46a3f0
movdqu xmm1, xmmword [eax - 0x10]
add ebx, ebx
pand xmm1, xmmword [ebx*8 + 0x7931a0]
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 + 0x7932a0]
jmp 0x46a3d8
aesenc xmm0, xmm0
movd dword [edx], xmm0
ret
movdqu xmm1, xmmword [eax]
jmp 0x46a3d8
pxor xmm1, xmmword [0x96acf0]
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 [0x96acf0]
pxor xmm2, xmmword [0x96ad00]
pxor xmm3, xmmword [0x96ad10]
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 [0x96acf0]
pxor xmm2, xmmword [0x96ad00]
pxor xmm3, xmmword [0x96ad10]
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 0x46a55a
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 [0x96a6aa], 0
je 0x46bc5a
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0xc]
lea edx, [esp + 0x10]
jmp 0x46a380
jmp fcn.00408a90
Function at 0x4072f5
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
je 0x407363
lea eax, [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax - 4]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40735f
push str.redo:_Error:
call fcn.0040ecf2
add eax, 0x40
push eax
call fcn.004098a1
pop ecx
pop ecx
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0040ecf2
add eax, 0x40
push eax
call fcn.00409809
add esp, 0xc
call fcn.0040ecf2
add eax, 0x40
push eax
push 0x42138c
call fcn.00409665
pop ecx
pop ecx
and dword [ebp - 4], 0
push 0x443660
call fcn.004084bf
pop ecx
push dword [ebp + 8]
call fcn.0040e9ff
leave
ret

Function at 0x4081bc
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call dword [0x422c4c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40821a
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov ax, word [ecx + eax*2 - 2]
mov word [ebp - 0xc], ax
movzx eax, word [ebp - 0xc]
test eax, eax
je 0x40821a
movzx eax, word [ebp - 0xc]
cmp eax, 0x20
je 0x408206
movzx eax, word [ebp - 0xc]
cmp eax, 9
jne 0x40821a
mov eax, dword [ebp - 4]
dec eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
and word [ecx + eax*2], 0
jmp 0x4081d7
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
shl eax, 2
push eax
call fcn.0040f5f4
pop ecx
mov dword [0x464824], eax
cmp dword [0x464824], 0
jne 0x408241
or eax, 0xffffffff
jmp 0x4082b5
push 0
push 0
mov eax, dword [ebp - 4]
shl eax, 2
push eax
push dword [0x464824]
push dword [ebp - 4]
push dword [ebp - 0x10]
push 0
push 0xfde9
call dword [0x422c34]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40828b
push str.Warning:_Cant_convert_the_argument_line_to_UTF_8_n
call fcn.0040ecf2
add eax, 0x40
push eax
call fcn.0041015c
pop ecx
pop ecx
mov eax, dword [0x464824]
mov byte [eax], 0
mov eax, dword [ebp - 4]
inc eax
push eax
push dword [0x464824]
call fcn.0040f311
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4082ae
mov eax, dword [ebp - 8]
mov dword [0x464824], eax
call fcn.00408ed1
xor eax, eax
leave
ret
Function at 0x40f274
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x421e50]
jne 0x40f27e
repz ret
jmp fcn.00414eac

Function at 0x412b52
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x422108]
je 0x412b6d
inc edi
cmp edi, 0x17
jb 0x412b5e
cmp edi, 0x17
jae 0x412ced
push ebp
push 3
call fcn.00419420
cmp eax, 1
pop ecx
je 0x412cb9
push 3
call fcn.00419420
test eax, eax
pop ecx
jne 0x412ba1
cmp dword [0x421e60], 1
je 0x412cb9
cmp ebx, 0xfc
je 0x412cec
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x422e98
push ebp
call fcn.0041201d
add esp, 0xc
test eax, eax
je 0x412bd7
push esi
push esi
push esi
push esi
push esi
call fcn.00410c87
add esp, 0x14
push 0x104
mov esi, 0x422eb1
push esi
push 0
mov byte [0x422fb5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x412c1b
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0041201d
add esp, 0xc
test eax, eax
je 0x412c1b
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00410c87
add esp, 0x14
push esi
call fcn.0040e5e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x412c60
push esi
call fcn.0040e5e0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4231ac
push 0x41e7b4
sub ecx, eax
push ecx
push eax
call fcn.0041936d
add esp, 0x14
test eax, eax
je 0x412c60
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00410c87
add esp, 0x14
jmp 0x412c62
xor esi, esi
push 0x41e7b0
push ebx
push ebp
call fcn.004192fc
add esp, 0xc
test eax, eax
je 0x412c82
push esi
push esi
push esi
push esi
push esi
call fcn.00410c87
add esp, 0x14
push dword [edi*8 + 0x42210c]
push ebx
push ebp
call fcn.004192fc
add esp, 0xc
test eax, eax
je 0x412ca4
push esi
push esi
push esi
push esi
push esi
call fcn.00410c87
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0041913f
add esp, 0xc
jmp 0x412cec
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x412cec
cmp ebp, 0xffffffff
je 0x412cec
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x42210c]
push dword [esi]
call fcn.0040e5e0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x41cb7c
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x52c
mov eax, dword [0x421e50]
mov dword [ebp - 4], eax
mov eax, dword [0x464660]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x41cbab
call eax
cmp eax, ebx
mov dword [ebp - 0x528], eax
jne 0x41cd38
push dword [0x422b48]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x528], eax
je 0x41cd38
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x41cbe3
mov byte [ebp - 0x41c], bl
push esi
lea eax, [ebp - 0x524]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x41cbfb
mov byte [ebp - 0x524], bl
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x528]
call edi
test eax, eax
jne 0x41cc1c
mov byte [ebp - 0x10c], bl
push esi
lea eax, [ebp - 0x214]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call edi
test eax, eax
pop edi
jne 0x41cc39
mov byte [ebp - 0x214], bl
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0041cadf
lea eax, [ebp - 0x52c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41cc5c
sub eax, edx
mov ecx, eax
lea eax, [ebp - 0x314]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x41cc70
sub eax, esi
add eax, ecx
mov byte [ebp + eax - 0x213], bl
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.0041cadf
lea eax, [ebp - 0x52c]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x41cca5
sub eax, ecx
lea ecx, [ebp - 0x314]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x41ccb7
sub ecx, esi
add ecx, eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x524]
push eax
mov byte [ebp + ecx - 0x10b], bl
call fcn.0041ca10
test eax, eax
pop esi
jne 0x41ccf8
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x524]
push eax
call fcn.0041ca10
test eax, eax
jne 0x41cd26
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.0041ca10
test eax, eax
jne 0x41cd38
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.0041ca10
test eax, eax
je 0x41cd38
push dword [ebp - 0x528]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x528], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x528]
pop ebx
call fcn.0040f274
leave
ret
Function at 0x409480
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
lea eax, [esp + 4]
mov esi, ecx
push eax
push 0
push 0
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x4094c5
xor al, al
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0040a3db
add esp, 0x20c
ret
cmp word [esi], 0
mov ecx, dword [esp + 0x214]
je 0x4094dc
add esi, 2
dec ecx
cmp word [esi], 0
jne 0x4094d2
cmp word [esp + 4], 0
je 0x409507
lea edx, [esp + 4]
sub edx, esi
nop word [eax + eax]
cmp ecx, 1
jb 0x409524
mov ax, word [edx + esi]
dec ecx
mov word [esi], ax
add esi, 2
cmp word [edx + esi], 0
jne 0x4094f0
mov ecx, dword [esp + 0x20c]
xor eax, eax
mov word [esi], ax
mov al, 1
pop esi
xor ecx, esp
call fcn.0040a3db
add esp, 0x20c
ret
call fcn.0040d5a1
int3
Function at 0x409b30
Capabilities:
Create directory

Disassembly:
mov eax, 0x200c
call fcn.0041ca50
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2004], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [0x427480]
mov ebp, ecx
test edi, edi
jne 0x409b97
push 0x1000
mov edx, str._HOME_
lea ecx, [esp + 0x14]
call fcn.00409530
add esp, 4
test al, al
je 0x409c74
lea eax, [esp + 0x10]
push eax
call fcn.0041128d
mov edi, dword [0x427480]
add esp, 4
mov dword [edi*4 + 0x42a4b0], eax
inc edi
mov dword [0x427480], edi
xor esi, esi
test edi, edi
jle 0x409be4
nop dword [eax]
mov eax, dword [esi*4 + 0x42a4b0]
mov ecx, ebp
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x409bd6
test dx, dx
je 0x409bd2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x409bd6
add ecx, 4
add eax, 4
test dx, dx
jne 0x409bb0
xor eax, eax
jmp 0x409bdb
sbb eax, eax
or eax, 1
test eax, eax
je 0x409c0b
inc esi
cmp esi, edi
jl 0x409ba0
mov ecx, ebp
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409bf0
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jne 0x409c0f
cmp word [ebp + 2], 0x3a
jne 0x409c0f
mov al, 1
jmp 0x409c5b
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x409c30
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x409c59
mov bl, 1
cmp dword [0x427480], 0x400
jge 0x409c59
push ebp
call fcn.0041128d
mov ecx, dword [0x427480]
add esp, 4
mov dword [ecx*4 + 0x42a4b0], eax
inc ecx
mov dword [0x427480], ecx
mov al, bl
mov ecx, dword [esp + 0x2014]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040a3db
add esp, 0x200c
ret
mov ecx, str._HOME_
call fcn.00409a30
int3

Function at 0x409d80
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
mov eax, dword [0x427484]
sub esp, 0x20
test eax, eax
je 0x409db6
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x409daa
push 0
push dword [0x427484]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [0x427484]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x42748c], 0
je 0x409e8b
push ebx
push ebp
push esi
mov eax, 0x414
mov dword [esp + 0xc], 0
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov word [esp + 0x20], ax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], 0x427ca8
mov dword [esp + 0x20], 0x422c6c
mov dword [esp + 0x26], 0
mov dword [esp + 0x2a], 0
mov dword [esp + 0x2e], 0x422c6c
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x427ca8
call ebp
cmp eax, 0xffffffff
je 0x409e87
test al, 0x10
je 0x409e87
push 0x64
call ebx
mov eax, 0x414
mov dword [esp + 0x10], 0
mov word [esp + 0x20], ax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], 0x427ca8
mov dword [esp + 0x20], 0x422c6c
mov dword [esp + 0x26], 0
mov dword [esp + 0x2a], 0
mov dword [esp + 0x2e], 0x422c6c
call edi
inc esi
cmp esi, 0x14
jl 0x409e24
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x40ac05
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40ac44
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40ac44
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40ac44
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40ac44
cmp dword [ecx + 0x74], 0xe
jbe 0x40ac44
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41282e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41eabc
push 0x41eab4
push str.FlsAlloc
push 0x1f
call fcn.00412769
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412862
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d14c]
call esi
jmp 0x412868
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4128ac
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41eacc
push 0x41eac4
push str.FlsGetValue
push 0x21
call fcn.00412769
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4128e3
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d14c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4128eb
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41ead4
push 0x41eacc
push str.FlsSetValue
push 0x22
call fcn.00412769
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412925
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41d14c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]