joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e6d40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
call fcn.0050ad42
mov esi, dword [eax + 0xc]
movzx eax, word [esp + 8]
push 0xf1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x4e6d61
pop esi
ret
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4e6d84
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4e6d89
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
xor eax, eax
pop esi
ret
movzx eax, word [esi + 6]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ff272
mov edx, dword [esp + 0x14]
mov dword [edx], eax
xor ecx, ecx
add esp, 4
xor eax, eax
cmp cx, word [esi + 6]
jae 0x4e6dd7
push ebx
lea ecx, [esi + 8]
push ebp
jmp 0x4e6dc0
movzx ebx, word [ecx]
mov ebp, dword [edx]
mov dword [ebp + eax*4], ebx
movzx ebx, word [esi + 6]
inc eax
add ecx, 2
cmp eax, ebx
jl 0x4e6dc0
pop ebp
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
movzx eax, word [esi + 6]
pop edi
pop esi
ret
Function at 0x4e9960
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
sub esp, 0xcc
mov eax, dword [0x5b7a9c]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
mov ebx, dword [esp + 0xe0]
push ebp
mov ebp, dword [esp + 0xe0]
push esi
mov esi, dword [esp + 0xe0]
xor ecx, ecx
push edi
mov edi, dword [esp + 0xe0]
xor eax, eax
mov word [esi], cx
test byte [edi], 8
mov word [esp + 0x10], ax
je 0x4e99bf
test ebx, ebx
je 0x4e99b0
push str.Ctrl_
jmp 0x4e99b5
push str.Ctrl
push ebp
push esi
call fcn.005400bf
add esp, 0xc
test byte [edi], 0x10
je 0x4e99de
test ebx, ebx
je 0x4e99cf
push str.Alt_
jmp 0x4e99d4
push str.Alt
push ebp
push esi
call fcn.005400bf
add esp, 0xc
test byte [edi], 4
je 0x4e99fd
test ebx, ebx
je 0x4e99ee
push str.Shift_
jmp 0x4e99f3
push str.Shift
push ebp
push esi
call fcn.005400bf
add esp, 0xc
movzx eax, word [edi + 2]
cmp ax, 3
jne 0x4e9a20
push str.Break
lea edx, [esp + 0x14]
push 0x64
push edx
call fcn.0054013c
add esp, 0xc
jmp 0x4e9add
cmp ax, 0x13
jne 0x4e9a3f
push str.Pause
lea eax, [esp + 0x14]
push 0x64
push eax
call fcn.0054013c
add esp, 0xc
jmp 0x4e9add
mov ecx, 0x90
cmp ax, cx
jne 0x4e9a5f
push str.Num_Lock
lea edx, [esp + 0x14]
push 0x64
push edx
call fcn.0054013c
add esp, 0xc
jmp 0x4e9add
cmp ax, 0x6f
jne 0x4e9a7b
push 0x587a08
lea eax, [esp + 0x14]
push 0x64
push eax
call fcn.0054013c
add esp, 0xc
jmp 0x4e9add
movzx ecx, ax
push 0
push ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
movzx ecx, word [edi + 2]
shl eax, 0x10
cmp cx, 0x2d
je 0x4e9aca
cmp cx, 0x2e
je 0x4e9aca
cmp cx, 0x24
je 0x4e9aca
cmp cx, 0x23
je 0x4e9aca
cmp cx, 0x21
je 0x4e9aca
cmp cx, 0x22
je 0x4e9aca
cmp cx, 0x25
je 0x4e9aca
cmp cx, 0x27
je 0x4e9aca
cmp cx, 0x26
je 0x4e9aca
cmp cx, 0x28
jne 0x4e9acf
or eax, 0x1000000
push 0x14
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
lea eax, [esp + 0x10]
push eax
push ebp
push esi
call fcn.005400bf
mov ecx, dword [esp + 0xe4]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0053fa67
add esp, 0xcc
ret
Function at 0x4f2e80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0xa74
mov eax, dword [0x5b7a9c]
xor eax, esp
mov dword [esp + 0xa70], eax
push ebx
mov ebx, dword [esp + 0xa7c]
push esi
mov esi, dword [esp + 0xa84]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4f2ec6
pop esi
pop ebx
mov ecx, dword [esp + 0xa70]
xor ecx, esp
call fcn.0053fa67
add esp, 0xa74
ret
mov eax, dword [ebx + 0x20]
push esi
push 0
push 0x180
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x4f302a
push edi
push esi
lea ecx, [esp + 0x670]
push 0x208
push ecx
call fcn.0054013c
push str..
lea edx, [esp + 0x67c]
push 0x208
push edx
call fcn.005400bf
add esp, 0x18
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x670]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4f3029
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea ebx, [ebx]
mov ecx, 0x5770a4
lea eax, [esp + 0x3c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4f2f76
test dx, dx
je 0x4f2f72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4f2f76
add eax, 4
add ecx, 4
test dx, dx
jne 0x4f2f50
xor eax, eax
jmp 0x4f2f7b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4f3011
mov ecx, 0x57805c
lea eax, [esp + 0x3c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4f2fb6
test dx, dx
je 0x4f2fb2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4f2fb6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4f2f90
xor eax, eax
jmp 0x4f2fbb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4f3011
push esi
lea edx, [esp + 0x264]
push 0x208
push edx
call fcn.0054013c
push 0x57c428
lea eax, [esp + 0x270]
push 0x208
push eax
call fcn.005400bf
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x27c]
push 0x208
push edx
call fcn.005400bf
lea eax, [esp + 0x284]
push eax
push ebx
call fcn.004f2e80
add esp, 0x2c
lea ecx, [esp + 0x10]
push ecx
push edi
call ebp
test eax, eax
jne 0x4f2f40
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
pop edi
mov ecx, dword [esp + 0xa78]
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0053fa67
add esp, 0xa74
ret
Function at 0x4f5840
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x420
mov eax, dword [0x5b7a9c]
xor eax, esp
mov dword [esp + 0x41c], eax
push esi
mov esi, dword [esp + 0x428]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorer
lea eax, [esp + 0x14]
push 0x208
push eax
call fcn.0054013c
push str.Shell_Folders
lea ecx, [esp + 0x20]
push 0x208
push ecx
call fcn.005400bf
add esp, 0x18
lea edx, [esp + 4]
push edx
push 0x2001f
push 0
lea eax, [esp + 0x1c]
push eax
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4f58de
lea ecx, [esp + 8]
push ecx
push esi
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x14]
push 0x589c04
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x420]
pop esi
xor ecx, esp
call fcn.0053fa67
add esp, 0x420
ret
Function at 0x4feff7
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5b7a9c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4ff0cc
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4ff0bb
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x4ff0a5
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x4ff0bb
push eax
push edi
push dword [ebp - 0x110]
call fcn.004fef94
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x4ff0ce
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0053fa67
leave
ret 4

Function at 0x4ffc31
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0050ad42
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4ffc6a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.004ff87d
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x4ffcc8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4ffcec
cmp dword [edi + 0x54], 0
jne 0x4ffcec
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0050ad42
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004ffc89
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x506006
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x50604d
call fcn.0050ad42
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x50604d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x506069
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00505b7e
mov esi, eax
test edi, edi
je 0x506067
test ebx, ebx
je 0x506067
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x506fb9
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x56a3ef
call fcn.0054401b
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x506fde
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x507024
lea ecx, [ebp - 0x10]
call fcn.00401d40
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00506742
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401420
mov eax, esi
call fcn.005440f3
ret 8

Function at 0x518f76
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 1
mov ecx, esi
test al, 1
je 0x518f9a
mov eax, dword [esi]
push 0
call dword [eax + 0x98]
test eax, eax
jne 0x518fa8
pop esi
ret
mov eax, dword [esi + 0x24]
mov edx, dword [esi]
push eax
call dword [edx + 0x98]
jmp 0x518f94
xor eax, eax
inc eax
pop esi
ret

Function at 0x52cd92
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x56a272
call fcn.0054401b
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.004022e0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x52cdf4
call fcn.0050a5f3
cmp eax, 1
jne 0x52cdf4
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push 0x573098
push eax
call fcn.0051647e
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00405fa0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401420
mov dword [ebp + 8], reloc.WSOCK32.dll_accept
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401420
mov eax, esi
call fcn.005440f3
ret 0x10
Function at 0x52ce1d
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x56a272
call fcn.0054401b
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.004022e0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x52ce7f
call fcn.0050a5f3
cmp eax, 1
jne 0x52ce7f
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push 0x573098
push eax
call fcn.0051647e
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00405fa0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401420
mov dword [ebp + 8], reloc.WSOCK32.dll_accept
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401420
mov eax, esi
call fcn.005440f3
ret 0x14

Function at 0x5398df
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x539927
call fcn.0050ad42
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x539927
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x53996a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x539953
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x539953
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x539967
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x53fa67
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5b7a9c]
jne 0x53fa71
repz ret
jmp fcn.0054856c
Function at 0x554665
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00547033
and dword [ebp - 4], 0
cmp dword [0x5f2540], 0
mov ebx, eax
jne 0x554716
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x5547c7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x5547c7
push eax
call fcn.00546fc1
mov dword [esp], 0x593d50
push edi
mov dword [0x5f2540], eax
call esi
push eax
call fcn.00546fc1
mov dword [esp], 0x593d3c
push edi
mov dword [0x5f2544], eax
call esi
push eax
call fcn.00546fc1
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5f2548], eax
call esi
push eax
call fcn.00546fc1
pop ecx
mov dword [0x5f2550], eax
test eax, eax
je 0x554716
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00546fc1
pop ecx
mov dword [0x5f254c], eax
mov eax, dword [0x5f254c]
cmp eax, ebx
je 0x55476e
cmp dword [0x5f2550], ebx
je 0x55476e
push eax
call fcn.0054703c
push dword [0x5f2550]
mov esi, eax
call fcn.0054703c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x55476e
test edi, edi
je 0x55476e
call esi
test eax, eax
je 0x554765
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x554765
test byte [ebp - 0xc], 1
jne 0x55476e
or dword [ebp + 0x10], 0x200000
jmp 0x5547a7
mov eax, dword [0x5f2544]
cmp eax, ebx
je 0x5547a7
push eax
call fcn.0054703c
pop ecx
test eax, eax
je 0x5547a7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x5547a7
mov eax, dword [0x5f2548]
cmp eax, ebx
je 0x5547a7
push eax
call fcn.0054703c
pop ecx
test eax, eax
je 0x5547a7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5f2540]
call fcn.0054703c
pop ecx
test eax, eax
je 0x5547c7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5547c9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0xb5d058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00b5d1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xb5d07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb5d06a
add dl, dl
jne 0xb5d089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb5d0dc
xor eax, eax
add dl, dl
jne 0xb5d096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb5d17d
add dl, dl
jne 0xb5d0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb5d0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb5d0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb5d0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xb5d0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xb5d075
mov eax, 1
add dl, dl
jne 0xb5d0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb5d0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb5d0e1
sub eax, ebx
mov ebx, 1
jne 0xb5d128
mov ecx, 1
add dl, dl
jne 0xb5d10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb5d119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb5d105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb5d075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xb5d13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb5d14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb5d136
cmp eax, 0x7d00
jae 0xb5d16d
cmp eax, 0x500
jb 0xb5d168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb5d075
cmp eax, 0x7f
ja 0xb5d170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb5d075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xb5d19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xb5d075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401010
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x451040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x414]
push esi
push ebx
push 0x104
push eax
mov dword [ebp - 0x668], ebx
call fcn.0040ce9b
push 0x4478f0
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0040cdc6
push ebx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040ce9b
push 0x4478f8
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040cdc6
add esp, 0x30
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4010ae
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402c13
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0040ce9b
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
add esp, 0xc
lea eax, [ebp - 0x664]
push eax
push esi
call ebx
test eax, eax
je 0x401160
lea eax, [ebp - 0x638]
push eax
call fcn.004011f0
add esp, 4
test eax, eax
jne 0x4010d6
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040cdc6
add esp, 0xc
lea eax, [ebp - 0x20c]
test byte [ebp - 0x664], 0x10
push eax
je 0x401139
call fcn.00401010
add esp, 4
test eax, eax
je 0x40118b
lea eax, [ebp - 0x20c]
push eax
call edi
jmp 0x401143
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40118b
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040ce9b
jmp 0x4010d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x40118b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x668]
call edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402c13
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402c13
mov esp, ebp
pop ebp
ret
Function at 0x401270
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, ecx
and eax, 0xf
cmp dword [0x451a28], 0
mov dword [ebp + 0xc], eax
je 0x401299
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadStringW]
pop ebp
ret
movzx eax, word [0x451a34]
push esi
mov esi, dword [ebp + 8]
push eax
shr ecx, 4
inc ecx
movzx eax, cx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x401310
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x401310
push ebx
push edi
xor edi, edi
nop dword [eax]
movzx eax, word [esi]
add esi, 2
test ax, ax
je 0x401308
mov ebx, eax
cmp edi, dword [ebp + 0xc]
jne 0x401305
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
call fcn.00403bf0
cmp dword [ebp + 0x14], ebx
mov eax, ebx
cmovl eax, dword [ebp + 0x14]
push eax
push esi
push dword [ebp + 0x10]
call fcn.0040ceff
add esp, 0x18
lea esi, [esi + ebx*2]
inc edi
cmp edi, 0x10
jl 0x4012d0
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x401320
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0c
mov eax, dword [0x451040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xab0]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp eax, 0x104
ja 0x401386
test eax, eax
je 0x401386
lea eax, [ebp - 0xab0]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040ce9b
add esp, 0xc
lea eax, [ebp - 0x20c]
push str._selfdel.dll
push eax
call esi
jmp 0x40139f
push str.C:_selfdel.dll
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040ce9b
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x69
push edi
call fcn.00401500
add esp, 0xc
lea eax, [ebp - 0x824]
push 0x618
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str._rundll32.exe
lea eax, [ebp - 0x824]
push eax
call esi
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401403
push 0x618
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str._rundll32.exe
lea eax, [ebp - 0x824]
push eax
call esi
push 0x447bf4
lea eax, [ebp - 0x824]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x824]
push eax
call esi
push 0x447bf8
lea eax, [ebp - 0x824]
push eax
call esi
push 0x208
lea eax, [ebp - 0xcb8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x447c0c
lea eax, [ebp - 0x824]
push eax
call esi
lea eax, [ebp - 0xcb8]
push eax
lea eax, [ebp - 0x824]
push eax
call esi
push 0x447c0c
lea eax, [ebp - 0x824]
push eax
call esi
push 0x447bf4
lea eax, [ebp - 0x824]
push eax
call esi
push 0xa
lea eax, [ebp - 0x8a8]
push eax
push dword [0x451a34]
call fcn.0040d6d1
add esp, 0xc
push eax
lea eax, [ebp - 0x824]
push eax
call esi
push 0x44
lea eax, [ebp - 0xd0c]
push 0
push eax
call fcn.00403bf0
add esp, 0xc
mov dword [ebp - 0xce0], 0x80
lea eax, [ebp - 0xcc8]
push eax
lea eax, [ebp - 0xd0c]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
lea eax, [ebp - 0x824]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00402c13
mov esp, ebp
pop ebp
ret