joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d2a8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a428]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004089e7
mov dword [ebp - 0x14], eax
cmp dword [0x819800], esi
jne 0x40d39b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d328
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d47b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d47b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d47b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x819800], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x819804], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x819808], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x819810], eax
test eax, eax
je 0x40d398
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x81980c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d3c0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d3b3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d3d5
push 4
pop eax
jmp 0x40d47d
cmp dword [ebp - 0x14], esi
je 0x40d3d5
push dword [0x819800]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d3ba
mov eax, dword [0x81980c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d433
cmp dword [0x819810], edi
je 0x40d433
push eax
call ebx
push dword [0x819810]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d433
test eax, eax
je 0x40d433
call ecx
test eax, eax
je 0x40d428
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 0x40d428
test byte [ebp - 8], 1
jne 0x40d433
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d463
mov eax, dword [0x819804]
cmp eax, edi
je 0x40d460
push eax
call ebx
test eax, eax
je 0x40d460
call eax
mov esi, eax
test esi, esi
je 0x40d460
mov eax, dword [0x819808]
cmp eax, edi
je 0x40d460
push eax
call ebx
test eax, eax
je 0x40d460
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x819800]
call ebx
test eax, eax
je 0x40d47b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d47d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403e50
mov esp, ebp
pop ebp
ret
Function at 0x10008ec6
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x10008f28
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, ecx
test edx, edx
jne 0x10008f38
push 0xd
pop eax
jmp 0x10008f6e
push ebp
push esi
push edi
xor esi, esi
mov edi, edx
mov ecx, edi
lea ebp, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10008f44
sub ecx, ebp
lea eax, [ecx + 1]
add edi, eax
add esi, eax
cmp eax, 1
jne 0x10008f3f
push esi
push edx
push 7
push 0
push dword [esp + 0x24]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x1000c3fb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x1000c40a
pop dword [ebp - 0xc]
mov eax, 0x1000c40a
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x34bcc
push 0
mov eax, 0x4a63ebb5
add eax, 0xc59ce553
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x3d35
xor edi, edi
add edi, eax
mov ebx, 0x10021400
add ebx, dword [ebp - 0xc]
mov esi, 0x54c3164a
sub dword [ebp - 4], eax
mov edx, dword [ebx]
xor dword [ebp - 8], esi
add edx, esi
xor dword [ebp - 4], ecx
mov dword [edi], edx
add dword [ebp - 8], 0x73df7288
add edi, 0x21075851
sub edi, 0x2107584d
add ebx, 0x5d966d56
add ebx, 0xa26992ae
loop 0x1000c454
add eax, 0xe7a7
mov ebx, eax
add eax, 0x76cb8048
add eax, 0x89347fbd
mov ecx, 0x37fae4b6
sub ecx, 0x27fae4b6
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x40230a
Capabilities:
Allocate or change rwx memory
Create process on windows
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x472500]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.006:107_4:_00007:277_0:_004:_04:_008:_08:_08:_8:_7:2_3:_9:193_4:_
lea ecx, [ebp - 0x1c]
call fcn.00401648
push 0xc
call fcn.00404aab
pop ecx
test eax, eax
je 0x402343
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.004016a1
jmp 0x402345
xor eax, eax
mov esi, dword [eax + 4]
shl esi, 2
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
lea eax, [ebp - 0x20]
mov ebx, 0x4ac
mov edi, 0x472028
sub esi, 0x40
push eax
push 0x40
push ebx
push edi
push 0xffffffffffffffff
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push ebx
push edi
mov dword [ebp - 0x24], esi
call fcn.004020fc
push 0x27
push section..data
push 0x4c000
mov esi, str.Z2Wn
push esi
call fcn.00401c27
add esp, 0x18
lea eax, [ebp - 0x24]
push eax
xor eax, eax
push eax
push esi
push 0x4721b0
push eax
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_CreateCaret]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
lea ecx, [ebp - 0x1c]
call fcn.00401fb0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404ae9
leave
ret

Function at 0x4039ed
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x403a0e
jl 0x403a05
test edi, edi
jne 0x403a0e
xor eax, eax
xor edx, edx
jmp 0x403acf
cmp dword [ebx + 0x38], 0
je 0x403a23
push eax
push edi
push dword [ebp + 8]
call fcn.00403ad5
jmp 0x403acf
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x403a6a
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x403a6a
cmp eax, edi
jb 0x403a44
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00405610
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x403a70
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x403ac4
mov ecx, ebx
call fcn.00403116
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x403aaf
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040a942
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x403ac4
jmp 0x403a82
test edx, edx
je 0x403ac4
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040a942
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x415676
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x415713
push ebx
push esi
call fcn.0041563f
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004142c4
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4156c0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x415712
push edi
push eax
call fcn.00412681
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4156e0
call fcn.0040f658
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x415711
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004142c4
add esp, 0x20
test eax, eax
jne 0x4156ff
push edi
call fcn.0040f658
jmp 0x415707
push ebx
call fcn.0040f658
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41b2e0
Capabilities:
Parse pe header

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

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

Disassembly:
pushal
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e072
mov ebx, 0x407ef8
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x91f2ef9
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e0d2
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x7a28474a
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x402e48
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x407010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402ee0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402ec0
xor eax, eax
push ebp
push 0x402eb9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402efc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402ec0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x407010]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x407010], ax
mov esp, ebp
pop ebp
ret

Function at 0x403668
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x408034], 0
je 0x4036c9
cmp word [0x408208], 0xd7b2
jne 0x403691
cmp dword [0x408210], 0
jbe 0x403691
mov eax, 0x408204
call dword [0x408220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4036f0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40701c], 0
jne 0x4036e5
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
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 0x2e00f1e1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x2e00f1f0
pop dword [ebp - 0x48]
mov eax, 0x2e00f1f0
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0xd50fbef3
add dword [ebp - 0x58], 0x79428658
mov dword [ebp - 0x54], 0x5ba34613
add dword [ebp - 0x54], 0xd6900632
mov dword [ebp - 0x50], 0xffc06c25
add dword [ebp - 0x50], 0x4c8bd809
mov dword [ebp - 0x4c], 0x68f92fc6
sub dword [ebp - 0x4c], 0x68f92fc6
lea eax, [ebp - 0x58]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x988b13d5
sub dword [ebp - 0x58], 0x2418aa7f
mov dword [ebp - 0x54], 0x24dd18b0
sub dword [ebp - 0x54], 0xe370b73b
mov dword [ebp - 0x50], 0x13630104
add dword [ebp - 0x50], 0x500c6b68
mov dword [ebp - 0x4c], 0xc3ef43eb
add dword [ebp - 0x4c], 0x3c10bc15
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x3f699
push 0
call eax
mov ecx, 0xea57f748
sub ecx, 0xea57b576
mov esi, eax
mov edi, 0x3dad196d
add edi, 0xf0585493
add edi, dword [ebp - 0x48]
mov ebx, 0x517be68
sub dword [ebp - 0x20], 0xa09ac128
mov edx, dword [edi]
mov dword [ebp - 0x2c], 0xa2c3ee39
add edx, ebx
sub dword [ebp - 0x10], 0x9c0d9cb9
mov dword [esi], edx
xor dword [ebp - 8], 0x428fada5
add esi, 0x1da8a43c
sub esi, 0x1da8a438
add edi, 4
loop 0x2e00f2fd
add eax, 0xce3b566e
add eax, 0x31c5a3ad
mov ebx, eax
add eax, 0x55769263
add eax, 0xaa896da2
mov ecx, 0x2e000000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret

Function at 0x2e013ece
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x2e03021f
call fcn.2e00153c
mov edi, ecx
mov dword [ebp - 0x18], edi
xor ebx, ebx
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov byte [edi], bl
mov dword [ebp - 4], ebx
call fcn.2e014c10
test ax, ax
je 0x2e013f76
lea eax, [ebp - 0x10]
push eax
push str.softwaremicrosoftwindows_shell_associationsurlassociationshttpuserchoice
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x2e013f76
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push str.progid
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e013f6d
mov eax, dword [ebp - 0x14]
inc eax
push eax
call fcn.2e00f1e1
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push esi
push ebx
push ebx
push str.progid
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e013f60
push esi
mov ecx, edi
call fcn.2e010c49
push 1
push esi
mov byte [ebp - 4], bl
call fcn.2e00f1e1
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.2e001586
ret
Function at 0x10032fc7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x10032fd6
pop dword [ebp - 8]
mov eax, 0xcec02c65
add eax, 0x41430371
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x2b125c6f
add dword [ebp - 0x18], 0x233fe8dc
mov dword [ebp - 0x14], 0x844f8107
sub dword [ebp - 0x14], 0x521c34c2
mov dword [ebp - 0x10], 0x84bdb92f
add dword [ebp - 0x10], 0xc78e8aff
mov dword [ebp - 0xc], 0x4fa0a60c
sub dword [ebp - 0xc], 0x4fa0a60c
lea eax, [ebp - 0x18]
push eax
mov eax, 0xb1d3a8dd
add eax, 0x5e2fa83b
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x171a31ff
sub dword [ebp - 0x18], 0xa2a7c8a9
mov dword [ebp - 0x14], 0xcf5aceb2
add dword [ebp - 0x14], 0x721192c3
mov dword [ebp - 0x10], 0x1de9846
add dword [ebp - 0x10], 0x6190d426
mov dword [ebp - 0xc], 0x3c6b25ab
sub dword [ebp - 0xc], 0x3c6b25ab
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x3d69a
push 0
call eax
mov ecx, 0x5c2649b1
add ecx, 0xa3da07a0
mov edi, eax
mov esi, 0x10088400
add esi, dword [ebp - 8]
mov ebx, 0x1c8c315d
sub ebx, 0xe91f257f
mov dword [ebp - 4], 0x4b4be38
mov edx, dword [esi]
sub dword [ebp - 4], esi
xor edx, ebx
sub dword [ebp - 4], 0xd2f5d791
mov dword [edi], edx
sub dword [ebp - 4], 0xe443cf8f
add edi, 0xc5396bac
add edi, 0x3ac69458
add esi, 0x37079f95
sub esi, 0x37079f91
loop 0x100330ed
add eax, 0xdabfa884
sub eax, 0xdabe706d
mov ebx, eax
add eax, 0xc2602db4
add eax, 0x3d9fd251
mov ecx, 0x271c7bfc
add ecx, 0xe8e38404
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x1003384b
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov eax, dword [esi + 0x50]
cmp eax, dword [esi + 0x54]
jae 0x10033862
mov bl, byte [eax]
inc eax
mov dword [esi + 0x50], eax
jmp 0x100338ce
cmp dword [esi + 0x4c], 0
jl 0x100338cc
mov edi, dword [esi + 0x58]
push 0xfa0
push edi
push dword [esi + 0x4c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x1003389a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 4
je 0x1003386b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 0xb
je 0x1003386b
cmp ebx, 1
jge 0x100338a7
or dword [esi + 0x4c], 0xffffffff
xor bl, bl
jmp 0x100338ec
lea eax, [edi + 1]
mov dword [esi + 0x50], eax
lea eax, [ebx + edi]
mov dword [esi + 0x54], eax
mov bl, byte [edi]
test bl, bl
jne 0x100338ce
push esi
call fcn.100348ff
mov eax, dword [esi + 0x50]
or dword [esi + 0x4c], 0xffffffff
pop ecx
mov dword [esi + 0x54], eax
jmp 0x100338ce
xor bl, bl
cmp bl, 0xa
jne 0x100338e2
mov eax, dword [esp + 0x18]
and dword [eax], 0
mov eax, dword [esp + 0x14]
inc dword [eax]
jmp 0x100338ec
test bl, bl
je 0x100338ec
mov ecx, dword [esp + 0x18]
inc dword [ecx]
pop edi
pop esi
mov al, bl
pop ebx
ret
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x401c66
pop dword [ebp - 0x4c]
mov eax, 0x9c8a37c5
add eax, 0x63b5e4a1
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0xca7da7e2
sub dword [ebp - 0x5c], 0x7c2b6297
mov dword [ebp - 0x58], 0xdf6c1453
sub dword [ebp - 0x58], 0xad38c80e
mov dword [ebp - 0x54], 0xa383720
add dword [ebp - 0x54], 0x42140d0e
mov dword [ebp - 0x50], 0x8a014a4
add dword [ebp - 0x50], 0xf75feb5c
lea eax, [ebp - 0x5c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xaef026f
add dword [ebp - 0x5c], 0x698366e7
mov dword [ebp - 0x58], 0xfa252c6f
sub dword [ebp - 0x58], 0xb8b8cafa
mov dword [ebp - 0x54], 0xda3b8edb
add dword [ebp - 0x54], 0x8933dd91
mov dword [ebp - 0x50], 0xa223757b
sub dword [ebp - 0x50], 0xa223757b
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x293760bf
add eax, 0xd708cf6d
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x374ea
push 0
call eax
mov ecx, 0x5b023527
sub ecx, 0x5b01e9d9
mov esi, eax
mov edx, 0x8089cb5a
add edx, 0x7fb6a4a6
add edx, dword [ebp - 0x4c]
mov edi, 0x8c724fe6
sub edi, 0x204d05d4
add dword [ebp - 0x3c], 0x408898af
mov ebx, dword [edx]
add dword [ebp - 0x18], edx
xor ebx, edi
xor dword [ebp - 8], 0x6e8c4d2c
mov dword [esi], ebx
add dword [ebp - 4], 0x92a93180
add esi, 0x534b285f
add esi, 0xacb4d7a5
add edx, 4
loop 0x401d83
add eax, 0x1200b
xor ebx, ebx
add ebx, eax
add eax, 0xb26ac47c
add eax, 0x4d953b89
mov ecx, 0xebe486bd
add ecx, 0x145b7943
add ecx, dword [ebp - 0x4c]
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
Function at 0x40bea0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x40bec2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40bec9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40beb8
mov eax, 1
add ebx, ebx
jne 0x40bedb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40bed0
jne 0x40beec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40bed0
xor ecx, ecx
sub eax, 3
jb 0x40bf00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40bf72
mov ebp, eax
add ebx, ebx
jne 0x40bf0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40bf18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40bf3c
inc ecx
add ebx, ebx
jne 0x40bf28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40bf1d
jne 0x40bf39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40bf1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40bf5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40bf4d
jmp 0x40bebe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40bf5c
add edi, ecx
jmp 0x40bebe
pop esi
mov edi, esi
mov ecx, 0x128
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40bf7a
cmp byte [edi], 1
jne 0x40bf7a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x40bf7f
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x40bff7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd148]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd1d4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40bfac
mov ecx, edi
jns 0x40bfdb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd1d8]
or eax, eax
je 0x40bff1
mov dword [ebx], eax
add ebx, 4
jmp 0x40bfc9
call dword [esi + 0xd1dc]
popal
jmp 0x4036aa