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

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x10015f41
cmp dword [edi + 0x54], 0
jne 0x10015f41
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.100166c9
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.10015ee8
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x1001a55f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x1001a598
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.100149f3
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.100147aa
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x1001bbdc
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x1005762c
mov ecx, edi
call fcn.100013db
cmp dword [esi + 0x4c], 0
push dword [esp + 0xc]
jne 0x1001bc2f
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x1001bc42
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.100149f3
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.100147aa
jmp 0x1001bc42
mov ecx, esi
call fcn.1001c1c5
test eax, eax
je 0x1001bc42
push edi
mov ecx, eax
call fcn.1001a55f
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
pop edi
pop esi
ret 8

Function at 0x1001c123
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x1001c166
call fcn.100166c9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x1001c166
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1001c181
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.1001bcda
test ebx, ebx
mov esi, eax
je 0x1001c17f
test edi, edi
je 0x1001c17f
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x1001c87a
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x1004bd4f
call fcn.100335d5
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x1001c89f
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x1001c8eb
call fcn.10015105
push eax
lea ecx, [ebp - 0x10]
call fcn.100152e5
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.100154b8
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.100010b5
mov eax, esi
call fcn.100336ad
ret 8

Function at 0x1001e3f6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x1001e43c
call fcn.100166c9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x1001e43c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x1001e47f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x1001e468
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 0x1001e468
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x1001e47c
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 0x1002fc23
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1006a510]
jne 0x1002fc2d
repz ret
jmp fcn.100364e6

Function at 0x100415cb
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10039352
xor ebx, ebx
cmp dword [0x10090f60], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x100416a0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x1004160b
xor eax, eax
jmp 0x10041764
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1005550c
push edi
call esi
cmp eax, ebx
je 0x10041604
push eax
call fcn.100392ef
mov dword [esp], 0x100554fc
push edi
mov dword [0x10090f60], eax
call esi
push eax
call fcn.100392ef
mov dword [esp], 0x100554e8
push edi
mov dword [0x10090f64], eax
call esi
push eax
call fcn.100392ef
mov dword [0x10090f68], eax
lea eax, [ebp - 8]
push eax
call fcn.10032cce
test eax, eax
pop ecx
pop ecx
je 0x1004166e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100324c4
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x100416a0
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.100392ef
cmp eax, ebx
pop ecx
mov dword [0x10090f70], eax
je 0x100416a0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100392ef
pop ecx
mov dword [0x10090f6c], eax
mov eax, dword [0x10090f6c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x10041719
cmp dword [0x10090f70], esi
je 0x10041719
push eax
call fcn.1003935b
pop ecx
call eax
cmp eax, ebx
je 0x100416e6
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x10090f70]
call fcn.1003935b
pop ecx
call eax
test eax, eax
je 0x100416e6
test byte [ebp - 0x18], 1
jne 0x10041719
lea eax, [ebp - 0xc]
push eax
call fcn.10032d05
test eax, eax
pop ecx
je 0x10041701
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100324c4
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x10041710
or dword [ebp + 0x10], 0x200000
jmp 0x1004174a
or dword [ebp + 0x10], 0x40000
jmp 0x1004174a
mov eax, dword [0x10090f64]
cmp eax, esi
je 0x1004174a
push eax
call fcn.1003935b
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1004174a
mov eax, dword [0x10090f68]
cmp eax, esi
je 0x1004174a
push dword [ebp - 4]
push eax
call fcn.1003935b
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x10090f60]
call fcn.1003935b
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40134f
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push edi
xor ebx, ebx
push ebx
push 0x80000000
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
cmp edi, ebx
jne 0x401377
xor eax, eax
jmp 0x4013e4
push esi
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x48]
push eax
push 1
push edi
mov dword [ebp - 8], 0x40
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x4013a8
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x4013e3
push str.text_html
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpA]
test eax, eax
je 0x40139d
cmp dword [ebp + 0x10], ebx
je 0x4013e1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 8], 4
push 0x20000005
push edi
mov dword [ebp - 4], ebx
call esi
test eax, eax
je 0x40139d
mov eax, edi
pop esi
pop edi
pop ebx
leave
ret

Function at 0x4013e8
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor edi, edi
mov esi, dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040134f
add esp, 0xc
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x401411
inc edi
cmp edi, 3
jl 0x4013f2
cmp edi, 3
jne 0x40141d
xor eax, eax
jmp 0x4014e2
mov eax, dword [esi]
push ebx
mov ebx, 0x1000
add eax, ebx
push eax
call fcn.0040100e
pop ecx
mov ecx, dword [ebp + 0x10]
xor esi, esi
cmp eax, esi
mov dword [ecx], eax
je 0x4014d6
mov dword [ebp - 8], esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 4], eax
mov edi, 0x467
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp - 4]
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4014be
mov eax, dword [ebp - 0xc]
add dword [ebp - 4], eax
add dword [ebp - 8], eax
cmp dword [ebp + 0x18], 0
je 0x40148f
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x14]
imul eax, eax, 0x3e8
xor edx, edx
div dword [ecx]
push eax
push 0
push edi
push dword [ebp + 0x18]
call esi
cmp dword [ebp - 0xc], ebx
je 0x40144e
cmp dword [ebp + 0x18], 0
je 0x4014a7
push 0x3e8
push 0
push edi
push dword [ebp + 0x18]
call esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
cmp byte [eax], 0x3c
jne 0x4014d3
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [esi]
jmp 0x4014c9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov eax, dword [ebp + 0x10]
push dword [eax]
call fcn.00401021
pop ecx
xor eax, eax
jmp 0x4014e1
xor esi, esi
inc esi
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret
Function at 0x40159d
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
mov ebx, dword [ebp + 0xc]
cmp ebx, 1
jb 0x401680
push esi
mov esi, dword [ebp + 8]
and byte [esi], 0
push edi
lea eax, [ebp - 8]
push eax
push 0xf003f
xor edi, edi
push edi
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401667
lea eax, [ebp - 4]
push eax
push esi
push edi
push edi
push str.ProgramFilesDir
push dword [ebp - 8]
mov dword [ebp - 4], ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call ebx
test eax, eax
jne 0x401601
cmp byte [esi], al
jne 0x40167e
and byte [ebp - 0x10c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0
push 0
push str.ProgramFilesPath
push dword [ebp - 8]
mov dword [ebp - 4], 0x104
call ebx
test eax, eax
jne 0x401644
cmp byte [ebp - 0x10c], al
jne 0x401656
push str._ProgamFiles_
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push dword [ebp + 0xc]
lea eax, [ebp - 0x10c]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsA]
cmp byte [esi], 0
jne 0x40167e
cmp dword [ebp + 0xc], 0xc
jbe 0x40167e
push str.C:Programme
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401683
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
push edi
push eax
call fcn.00401573
test eax, eax
mov edi, dword [ebp + 0xc]
pop ecx
mov esi, str.InstallDir
jne 0x4016d0
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push 0
push esi
push dword [ebp - 4]
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push dword [ebp - 4]
jne 0x4016ca
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40172c
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push edi
push dword [ebp + 8]
call fcn.0040159d
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrlenA]
pop ecx
pop ecx
push dword [ebp + 8]
call ebx
sub edi, eax
cmp edi, 0xb
jbe 0x4016fc
push str.websx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp - 4]
push eax
call fcn.004014e6
test eax, eax
pop ecx
jne 0x40172b
push dword [ebp + 8]
call ebx
inc eax
push eax
push dword [ebp + 8]
push 1
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
pop esi
leave
ret
Function at 0x401773
Capabilities:
Create directory

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
lea eax, [ebx + 4]
push 0x5c
push eax
call fcn.00401730
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4017c2
lea eax, [esi + 1]
push 0x5c
push eax
call fcn.00401730
and byte [esi], 0
pop ecx
pop ecx
push 0
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
mov byte [esi], 0x5c
jne 0x4017bc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x4017c9
test edi, edi
mov esi, edi
jne 0x40178d
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
ret
xor eax, eax
jmp 0x4017c5

Function at 0x4017cd
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
push ebx
push esi
push edi
mov ebx, 0x104
lea eax, [ebp - 0x158]
push ebx
push eax
call fcn.00401683
pop ecx
pop ecx
push dword [0x40701c]
mov edi, str.int_u.exe
push edi
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp + eax - 0x158]
push eax
call esi
xor edx, edx
add esp, 0xc
cmp dword [ebp + 8], edx
je 0x40189e
lea eax, [ebp - 0x158]
push eax
call fcn.00401773
test eax, eax
pop ecx
jne 0x401861
push ebx
lea eax, [ebp - 0x158]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push dword [0x40701c]
lea eax, [ebp - 0x158]
push edi
push 0x5c
push eax
call fcn.0040174c
pop ecx
pop ecx
push eax
call esi
add esp, 0xc
jmp 0x401863
xor ebx, ebx
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40189c
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor edx, edx
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push edx
push edx
push 0x200
push edx
push edx
push edx
push edx
lea eax, [ebp - 0x158]
push eax
mov dword [ebp - 0x54], 0x44
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
je 0x4018e8
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
xor eax, eax
inc eax
jmp 0x4018ea
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401995
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
mov dword [ebp + 8], eax
lea eax, [ebp - 4]
push eax
xor esi, esi
push esi
lea eax, [ebp + 8]
push eax
push 0x4018ef
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x4019c8
push esi
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp dword [ebp + 8], esi
jne 0x4019c1
pop esi
leave
ret
Function at 0x4019d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5bc
push esi
push 0
lea eax, [ebp - 4]
push eax
mov esi, 0x5b8
push esi
lea eax, [ebp - 0x5bc]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp dword [ebp - 4], esi
je 0x401a08
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x401a4f
mov esi, dword [ebp - 0x580]
push edi
push str.UPX0
lea esi, [ebp + esi - 0x4c4]
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.DLL_lstrcmpA]
neg eax
sbb eax, eax
and eax, 0xd
add eax, 3
test eax, eax
jbe 0x401a4c
lea edx, [esi + 0x14]
mov esi, dword [edx]
test esi, esi
je 0x401a46
mov ecx, dword [edx - 4]
add ecx, esi
cmp ecx, edi
jbe 0x401a46
mov edi, ecx
add edx, 0x28
dec eax
jne 0x401a35
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x401a52
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [eax], edi
push 0x104
lea eax, [ebp - 0x108]
push eax
push edi
mov dword [esi], edi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push edi
push edi
push 3
push edi
push 1
push 0x80000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401b00
push ebx
call fcn.004019d0
pop ecx
push edi
push edi
push eax
push ebx
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
sub eax, dword [ebp + 0xc]
mov dword [esi], eax
jne 0x401ac5
xor eax, eax
inc eax
jmp 0x401b10
add eax, 0x10
push eax
call fcn.0040100e
cmp eax, edi
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
je 0x401b07
push edi
lea ecx, [ebp - 4]
push ecx
push dword [esi]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [ebp - 4]
cmp eax, dword [esi]
je 0x401b04
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.00401021
pop ecx
xor eax, eax
jmp 0x401b10
xor edi, edi
inc edi
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40236a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp + 8]
push eax
xor edi, edi
push edi
push esi
push 0x4022de
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x402397
push edi
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp dword [esi + 0x28], edi
jne 0x402390
pop edi
pop esi
pop ebp
ret

Function at 0x402fed
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
push esi
push edi
xor edi, edi
xor eax, eax
mov edx, dword [ebp + 0x10]
mov ecx, eax
and ecx, 7
mov cl, byte [ecx + edx]
mov byte [ebp + eax - 0x204], cl
mov byte [ebp + eax - 0x104], al
inc eax
cmp eax, 0x100
jb 0x402ffd
mov dword [ebp + 0x10], edi
mov ecx, 0xff
mov ebx, dword [ebp + 0x10]
lea esi, [ebp + edi - 0x104]
xor edx, edx
mov dl, byte [esi]
xor eax, eax
mov al, byte [ebp + edi - 0x204]
add ebx, edx
add eax, ebx
and eax, ecx
mov dword [ebp + 0x10], eax
lea eax, [ebp + eax - 0x104]
mov bl, byte [eax]
inc edi
cmp edi, 0x100
mov byte [esi], bl
mov byte [eax], dl
jb 0x403026
xor edi, edi
cmp dword [ebp + 0xc], edi
mov dword [ebp + 0x10], edi
mov dword [ebp - 4], edi
jbe 0x4030bc
inc edi
and edi, ecx
xor ebx, ebx
lea eax, [ebp + edi - 0x104]
mov dl, byte [eax]
mov bl, dl
add ebx, dword [ebp + 0x10]
and ebx, ecx
mov esi, ebx
mov dword [ebp + 0x10], esi
lea esi, [ebp + esi - 0x104]
mov bl, byte [esi]
mov byte [eax], bl
mov ebx, dword [ebp - 4]
mov byte [esi], dl
movzx eax, byte [eax]
mov esi, dword [ebp + 8]
movzx edx, dl
add eax, edx
add esi, ebx
cdq
mov ebx, 0x100
idiv ebx
mov al, byte [ebp + edx - 0x104]
xor byte [esi], al
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jb 0x403069
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
lea eax, [ebp - 0x40]
push 0x40
push eax
call fcn.00401034
mov esi, dword [ebp + 0x10]
mov dword [ebp + 0x10], esi
pop ecx
xor edx, edx
and dword [ebp + 0x10], 0x3f
pop ecx
jbe 0x404e92
push ebx
push edi
mov edi, dword [ebp + 0xc]
movzx ebx, byte [edi]
mov ecx, edx
and ecx, 3
shl ecx, 3
shl ebx, cl
mov eax, edx
shr eax, 2
lea eax, [ebp + eax*4 - 0x40]
xor dword [eax], ebx
inc edi
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x404e71
pop edi
pop ebx
mov ecx, esi
xor edx, edx
and ecx, 3
mov eax, esi
shr eax, 2
inc edx
lea ecx, [ecx*8 + 7]
shl edx, cl
and eax, 0xf
lea eax, [ebp + eax*4 - 0x40]
xor dword [eax], edx
cmp dword [ebp + 0x10], 0x37
jbe 0x404ed1
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 8]
call fcn.004030e8
lea eax, [ebp - 0x40]
push 0x40
push eax
call fcn.00401034
add esp, 0x10
mov eax, esi
shl eax, 3
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
shl eax, 3
shr esi, 0x1d
or esi, eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], esi
call fcn.004030e8
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x404ef8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x28]
push eax
call fcn.004030c1
mov ebx, dword [sym.imp.KERNEL32.DLL_ReadFile]
add esp, 4
xor esi, esi
mov dword [ebp - 0x10], edi
jmp 0x404f94
mov eax, dword [ebp - 4]
shr eax, 6
je 0x404f86
lea edi, [ebp - 0x466]
mov dword [ebp - 0xc], eax
xor eax, eax
movzx edx, byte [edi - 1]
xor ecx, ecx
mov ch, byte [edi + 1]
mov cl, byte [edi]
add edi, 4
shl ecx, 8
or ecx, edx
movzx edx, byte [edi - 6]
shl ecx, 8
or ecx, edx
mov dword [ebp + eax*4 - 0x68], ecx
inc eax
cmp eax, 0x10
jb 0x404f4a
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004030e8
dec dword [ebp - 0xc]
pop ecx
pop ecx
jne 0x404f48
xor edi, edi
mov eax, dword [ebp - 4]
add eax, esi
cmp eax, esi
jae 0x404f92
inc dword [ebp - 0x10]
mov esi, eax
push edi
lea eax, [ebp - 4]
push eax
push 0x400
lea eax, [ebp - 0x468]
push eax
push dword [ebp - 8]
call ebx
cmp dword [ebp - 4], edi
jne 0x404f37
push dword [ebp - 0x10]
push esi
and esi, 0x3c0
lea eax, [ebp + esi - 0x468]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00404e4a
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, eax
shr ecx, 2
lea ecx, [ebp + ecx*4 - 0x28]
mov dl, byte [ecx]
mov ecx, dword [ecx]
mov byte [eax + 0x40746c], dl
mov edx, ecx
shr edx, 8
mov byte [eax + 0x40746d], dl
mov edx, ecx
shr edx, 0x10
shr ecx, 0x18
mov byte [eax + 0x40746e], dl
mov byte [eax + 0x40746f], cl
add eax, 4
cmp eax, 0x14
jb 0x404fd2
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, 0x40746c
leave
ret
Function at 0x40501c
Capabilities:
Create process on windows
Get common file path
Self delete
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60c
push ebx
push esi
push edi
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x20c]
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x60c]
push str._echo_off_r_n:delloop_r_ndel___s____nul_r_nif_exist___s__goto_delloop_r_ndel___0
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
push dword [0x40701c]
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrlenA]
push str.delde_u.bat
lea eax, [ebp - 0x108]
push eax
call ebx
lea eax, [ebp + eax - 0x108]
push eax
call edi
add esp, 0xc
push esi
push esi
push 2
push esi
push esi
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x60c]
push eax
call ebx
push eax
lea eax, [ebp - 0x60c]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
push esi
push esi
lea eax, [ebp - 0x108]
push eax
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
pop ebx
leave
ret