joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405770
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 8]
cmp word [esi + 2], 0x3a
jne 0x405922
movzx eax, word [esi + 4]
cmp ax, 0x5c
je 0x40579a
cmp ax, 0x2f
jne 0x405922
mov ax, word [esi]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], 0x5c
mov word [ebp - 0xa], bx
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 3
jne 0x405922
lea eax, [ebp - 0x28]
push str.7ZSfx_03x.cmd
push eax
call fcn.00404a4f
pop ecx
pop ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x4058ec
push edi
lea ecx, [ebp - 0x1c]
call fcn.00401558
push str.:Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.00401466
mov edi, str.del__
push edi
lea ecx, [ebp - 0x1c]
call fcn.00402adf
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040151f
mov esi, 0x418914
push esi
lea ecx, [ebp - 0x1c]
call fcn.00402adf
push str.if_exist__
lea ecx, [ebp - 0x1c]
call fcn.00402adf
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040151f
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.00402adf
push edi
lea ecx, [ebp - 0x1c]
call fcn.00402adf
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040151f
push esi
lea ecx, [ebp - 0x1c]
call fcn.00402adf
mov esi, dword [ebp - 0x18]
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00402e3d
mov eax, dword [eax]
add esp, 0xc
push ebx
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push dword [ebp - 0x34]
mov esi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp esi, ebx
pop edi
je 0x4058fd
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jne 0x4058fd
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push ebx
push ebx
push ebx
push dword [ebp - 0x28]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov esi, dword [ebp + 8]
pop ecx
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x405928
push dword [ebp - 0x28]
call fcn.00403310
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
jmp 0x405929
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x40918b
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
push esi
push edi
lea eax, [ebp - 0x10]
push eax
mov edi, 0x4b6
push edi
mov esi, ecx
call fcn.00407920
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push 1
inc eax
inc eax
push edi
mov ecx, esi
mov dword [esi + 0x58], eax
call fcn.0040793d
push 1
inc edi
push edi
mov ecx, esi
call fcn.0040793d
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push 0x103
push 0x2b4
lea eax, [ebp - 0x4d0]
push eax
push 0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x4d0]
push edi
push dword [esi + 4]
mov dword [esi + 0x50], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x407f86
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.00408e5a
mov ecx, esi
mov edi, eax
call fcn.004082f3
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x40aec0
Capabilities:
Hash data using sha256

Disassembly:
sub esp, 0x80
push ebx
mov ebx, ecx
mov ecx, dword [ebx]
cmp ecx, 0x3f
jne 0x40af3d
xor eax, eax
cmp dword [ebx + 4], eax
jbe 0x40aef0
jmp 0x40aee0
mov cl, byte [ebx + eax + 8]
mov byte [ebx + eax + 0x24], cl
add eax, 1
cmp eax, dword [ebx + 4]
jb 0x40aee0
xor ecx, ecx
cmp dword [ebx + 0x1c], ecx
jbe 0x40af15
cmp eax, 0x20
jae 0x40b093
mov edx, dword [ebx + 0x20]
mov dl, byte [ecx + edx]
mov byte [eax + ebx + 0x24], dl
add ecx, 1
add eax, 1
cmp ecx, dword [ebx + 0x1c]
jb 0x40aef7
cmp eax, 0x20
jae 0x40b093
mov ecx, 0x20
sub ecx, eax
push ecx
lea ebx, [eax + ebx + 0x24]
push 0
push ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
pop ebx
add esp, 0x80
ret
push esi
xor esi, esi
lea eax, [esi + 1]
xor edx, edx
mov dword [esp + 0x20], 0x6a09e667
mov dword [esp + 0x24], 0xbb67ae85
mov dword [esp + 0x28], 0x3c6ef372
mov dword [esp + 0x2c], 0xa54ff53a
mov dword [esp + 0x30], 0x510e527f
mov dword [esp + 0x34], 0x9b05688c
mov dword [esp + 0x38], 0x1f83d9ab
mov dword [esp + 0x3c], 0x5be0cd19
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
call fcn.00416320
cmp edx, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov byte [esp + 8], 0
mov byte [esp + 9], 0
mov byte [esp + 0xa], 0
mov byte [esp + 0xb], 0
mov byte [esp + 0xc], 0
mov byte [esp + 0xd], 0
mov byte [esp + 0xe], 0
mov byte [esp + 0xf], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
jb 0x40b081
ja 0x40afdc
cmp eax, esi
jbe 0x40b081
push ebp
push edi
mov edi, edi
mov eax, dword [ebx + 4]
push eax
lea eax, [ebx + 8]
push eax
lea edx, [esp + 0x30]
push edx
call fcn.0040abb0
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [ebx + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0040abb0
mov esi, dword [esp + 0x60]
add esp, 0x18
mov ebp, 8
lea edi, [esp + 0x10]
and esi, 0x3f
mov cl, byte [edi]
mov byte [esp + esi + 0x50], cl
add esi, 1
add edi, 1
add dword [esp + 0x48], 1
adc dword [esp + 0x4c], 0
sub ebp, 1
cmp esi, 0x40
jne 0x40b040
lea edx, [esp + 0x28]
xor esi, esi
call fcn.0040aaf0
test ebp, ebp
ja 0x40b017
xor eax, eax
add byte [esp + eax + 0x10], 1
jne 0x40b055
add eax, 1
cmp eax, 8
jl 0x40b046
add dword [esp + 0x18], 1
mov eax, dword [esp + 0x1c]
adc eax, 0
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
jb 0x40afe0
ja 0x40b07f
mov edx, dword [esp + 0x20]
cmp dword [esp + 0x18], edx
jb 0x40afe0
pop edi
pop ebp
add ebx, 0x24
lea eax, [esp + 0x20]
push ebx
push eax
call fcn.0040ac00
add esp, 8
pop esi
pop ebx
add esp, 0x80
ret

Function at 0x40f1fe
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f224
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x40f224
xor al, al
jmp 0x40f244
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.004162e0
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x40c20d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x40c21c
pop dword [ebp - 0x50]
mov eax, 0x8b02afb
sub eax, 0x86f68df
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x41222
push 0
mov eax, 0x55cbf8f
sub eax, 0x51a6d77
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x2d818322
sub ecx, 0x2d812db9
mov edi, eax
mov ebx, 0x435400
add ebx, dword [ebp - 0x50]
mov esi, 0x97197a26
add esi, 0x3aa3927d
sub dword [ebp - 0x3c], edi
mov edx, dword [ebx]
mov dword [ebp - 0x38], 0xf274912f
sub edx, esi
xor dword [ebp - 0x20], 0xc852dc60
mov dword [edi], edx
sub dword [ebp - 0x18], 0xe0816a25
add edi, 0x1a9d34a9
sub edi, 0x1a9d34a5
add ebx, 0xc728b581
sub ebx, 0xc728b57d
loop 0x40c275
add eax, 0x748b60ef
sub eax, 0x748a1878
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xcecccd40
sub ecx, 0xce8ccd40
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x4066ce
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4150d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
cmp byte [ebx + 0x30], 0
jne 0x40675c
push 0x104
lea eax, [ebp - 0x210]
push eax
mov byte [ebx + 0x30], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40675c
push esi
push edi
lea edi, [ebp - 0x210]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x406710
push 6
pop ecx
lea eax, [ebp - 0x210]
mov esi, 0x4014c8
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
pop edi
pop esi
je 0x40675c
push 0x4014a4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [ebx + 0x2c], eax
je 0x40675c
push 0x401488
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41602c], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407c6f
leave
ret

Function at 0x409ce4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
salc
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.00409975
push eax
push esi
push dword [ebp + 8]
call fcn.0040992a
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
sub dh, al
inc ebp
lcall 0xc635, 0x9b45c633
inc ebp
pushfd
xor al, 0xc6
inc ebp
popfd
and dh, al
inc ebp
sahf
sub eax, 0x119f45c6
Function at 0x409e72
Capabilities:
Inspect section memory permissions

Disassembly:
add bh, bh
jne 0x409e82
push ebx
call dword [ebp - 0x88]
mov esi, eax
cmp esi, ebx
je 0x40a15e
test bh, dl
add al, byte [eax]
add bh, bh
mov ch, 0x4c
push dword [ebp - 0xb4]
push dword [ebp + 0x10]
push esi
call fcn.004098d6
add esp, 0xc
cmp word [edi + 6], bx
mov dword [ebp + 0xc], ebx
jbe 0x409ed5
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add ecx, dword [ebp + 0x10]
add eax, esi
push ecx
push eax
call fcn.004098d6
add esp, 0xc
inc dword [ebp + 0xc]
mov ax, word [ebp + 0xc]
cmp ax, word [edi + 6]
jb 0x409ea2
call fcn.00409965
mov ebp, 0x8bb9b35c
jle 0x409f1d
add edi, esi
mov dword [ebp - 0x88], edi
mov eax, dword [edi + 0x80]
cmp eax, ebx
je 0x40a154
add eax, esi
mov dword [ebp - 0x44], eax
cmp dword [eax + 4], ebx
jne 0x409f0a
cmp dword [eax + 0xc], ebx
je 0x409fad
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.00409965
cmp eax, 0x39da087c
pop ebp
or al, 0x75
adc dl, byte [edi - 1]
xchg ebp, eax
dec eax
invalid
invalid
call fcn.00409965
sbb ah, cl
cmp al, 0x77
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x40a019
add eax, esi
cmp dword [eax], ebx
je 0x40a019
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x40a014
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x409ffe
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x40a006
cmp edx, ebx
jne 0x40a154
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x409fd5
add eax, dword [eax + 4]
jmp 0x409fc2
mov dword [ebp + 0xc], ebx
jmp 0x40a024

Function at 0x40a165
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7ec
push ebx
push esi
push edi
call fcn.00409943
idiv edi
inc ebx
Function at 0x40a173
Capabilities:
Contain obfuscated stackstrings

Disassembly:
idiv edi
inc ebx
clc
and byte [ebp - 0x354], 0
and byte [ebp - 0x353], 0
mov byte [ebp - 0x352], 0xda
and byte [ebp - 0x351], 0
mov byte [ebp - 0x350], 0x62
mov byte [ebp - 0x34f], 0x40
mov byte [ebp - 0x34e], 0x51
mov byte [ebp - 0x34d], 0x75
mov byte [ebp - 0x34c], 0x57
mov byte [ebp - 0x34b], 0x4a
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.00409975
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040992a
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.00409975
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040992a
add esp, 0xc
les ecx, [ecx + ecx*4]
test eax, ecx
cli
invalid
inc dword [eax - 0x3eb5b]
inc dword [eax]
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
and esp, edi
invalid
jmp dword [esi - 0x3dd7a3a]
invalid
dec dword [edi - 0x3dc7a3a]
invalid
inc dword [eax - 0x3db7a3a]
invalid
dec dword [edx - 0x3da7a3a]
invalid
inc dword [edx - 0x3d97a3a]
invalid
dec dword [ebx - 0x3d87a3a]
invalid
jmp [edi - 0x3d77a3a]
invalid
invalid
out dx, al
lea eax, [ebp - 0x3ec]
push eax
call fcn.00409975
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040992a
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.00409965
sbb esi, dword [esi + 0x3e]
stosd dword es:[edi], eax
and byte [ebp - 0x534], 0
and byte [ebp - 0x533], 0
mov byte [ebp - 0x532], 0x68
invalid
movsd dword es:[edi], dword [esi]
iretd
Function at 0x3ad7258d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3ad7a064]
jne 0x3ad72597
repz ret
jmp fcn.3ad73d0c

Function at 0x3ad784c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x3ad784cf
pop dword [ebp - 0x4c]
mov eax, 0x3ad784cf
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x34ce6
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x168e942d
add ecx, 0xe971a88a
xor ebx, ebx
add ebx, eax
mov edi, 0x3ad84e00
add edi, dword [ebp - 0x4c]
mov edx, 0x3ff6f042
sub edx, 0x69fe0194
mov esi, dword [edi]
mov dword [ebp - 0x1c], 0xea5f6f88
xor esi, edx
mov dword [ebp - 0x40], 0xee99d5d4
mov dword [ebx], esi
mov dword [ebp - 0xc], 0x5f0eabe0
add ebx, 4
add edi, 0xee7a24eb
add edi, 0x1185db19
loop 0x3ad78520
add eax, 0xdc362d99
add eax, 0x23cab816
xor ebx, ebx
add ebx, eax
add eax, 0xa309bd32
sub eax, 0xa309bd2d
mov ecx, 0x24f9c045
sub ecx, 0xea22c045
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0xf08c18
Capabilities:
Encode data using xor

Disassembly:
jmp 0xf08c22
pushal
call 0xf08c28
pop ebp
sub ebp, 0x10
sub ebp, 0xb08c18
jmp 0xf08c3e
mov eax, 0xb08c18
add eax, ebp
add eax, 0x4c
mov ecx, 0x5ba
mov edx, 0x9b61d0e4
xor byte [eax], dl
inc eax
dec ecx
jne 0xf08c55
jmp 0xf08c68
outsd dx, dword [esi]
sub dword [edi + 0x6d], ebp
fsub st(4)
in al, 0xe4
and eax, 0xe4e4e41c
out 0x29, eax
pop esp
loop 0xf08c5f
in al, 0xe4
pop esi
int3
Function at 0x40b2c8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x40b2d7
pop dword [ebp - 0x14]
mov eax, 0x724e5404
add eax, 0x8df25ed3
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x4d5ea
push 0
mov eax, 0xd03530c7
sub eax, 0xcff07e17
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0x1d9c5a6a
add ecx, 0xe263e29d
xor ebx, ebx
add ebx, eax
mov esi, 0x488e00
add esi, dword [ebp - 0x14]
mov edi, 0x33a4575e
add edi, 0xb2d89576
xor dword [ebp - 4], edi
mov edx, dword [esi]
add dword [ebp - 0x10], edi
xor edx, edi
mov dword [ebx], edx
sub dword [ebp - 0x10], 0x816abede
add ebx, 0x4604af33
add ebx, 0xb9fb50d1
add esi, 4
loop 0x40b332
add eax, 0xe6ef
xor ebx, ebx
add ebx, eax
add eax, 0xc1d9be52
sub eax, 0xc1d9be4d
mov ecx, 0xb32bbbc9
sub ecx, 0xb2ebbbc9
add ecx, dword [ebp - 0x14]
call ebx
leave
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x402820
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
lea ecx, [ebp - 0x18]
call fcn.00401310
lea ecx, [ebp - 0x24]
call fcn.00401310
push 0x3c
push 0
lea eax, [ebp - 0x60]
push eax
call fcn.0042b2e0
add esp, 0xc
mov dword [ebp - 0x60], 0x3c
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x5c], 0x740
mov dword [ebp - 0x44], 0xa
mov edx, dword [ebp + 0xc]
and edx, 1
je 0x40287b
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x5c]
or eax, 0x8000
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp + 0xc]
and ecx, 2
je 0x40288a
mov dword [ebp - 0x54], str.runas
mov edx, dword [ebp + 0xc]
and edx, 0x10000
jne 0x4028a0
mov eax, dword [ebp - 0x5c]
or eax, 0x100
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00406150
add esp, 8
push eax
lea ecx, [ebp - 0x24]
call fcn.004021b0
lea ecx, [ebp - 0x18]
call fcn.004027b0
test eax, eax
jne 0x4028e1
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00401880
lea ecx, [ebp - 0x18]
call fcn.00401880
mov eax, dword [ebp - 4]
jmp 0x40295c
lea ecx, [ebp - 0x18]
call fcn.004013a0
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x24]
call fcn.004013a0
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x402942
mov ecx, dword [ebp + 0xc]
and ecx, 0x10000
jne 0x40291c
push 0xffffffffffffffff
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], 1
lea ecx, [ebp - 0x24]
call fcn.00401880
lea ecx, [ebp - 0x18]
call fcn.00401880
mov eax, dword [ebp - 8]
jmp 0x40295c
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x24]
call fcn.00401880
lea ecx, [ebp - 0x18]
call fcn.00401880
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x402df0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.00403b00
mov ecx, dword [ebp - 0xc]
mov dword [0x435508], ecx
mov dword [0x435510], 0
lea edx, [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp - 0xc]
push eax
push 0x4030b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x43550c], eax
cmp dword [0x43550c], 0
je 0x402e5c
cmp dword [0x435538], 2
je 0x402e4d
call fcn.0040aca0
push 0xffffffffffffffff
mov ecx, dword [0x43550c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [0x4355f4], 0
cmp dword [0x435510], 0
je 0x402ee0
mov edx, dword [0x435510]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x69
ja case.0x402e91.3
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + 0x402f9c]
jmp dword [edx*4 + 0x402f88]
push 0x11
push 0
call fcn.0040c770
add esp, 8
jmp 0x402ed6
push 0x12
push 0
call fcn.0040c770
add esp, 8
jmp 0x402ed6
push 0x13
push 0
call fcn.0040c770
add esp, 8
jmp 0x402ed6
jmp 0x402ed6
mov eax, dword [0x435510]
push eax
push 0x14
push 0
call fcn.0040c770
add esp, 0xc
mov eax, 0x80004005
jmp 0x402f81
mov dword [ebp - 4], 0
cmp dword [0x4355f8], 0
jne 0x402f78
cmp dword [0x43550c], 0
je 0x402f18
lea ecx, [ebp - 4]
push ecx
mov edx, dword [0x43550c]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x402f18
cmp dword [ebp - 4], 0
je 0x402f76
mov eax, dword [ebp - 4]
and eax, 0x80070000
cmp eax, 0x80070000
je 0x402f39
mov ecx, dword [ebp - 4]
push ecx
push 0x21
push 0
call fcn.0040c770
add esp, 0xc
jmp 0x402f6f
mov edx, dword [ebp - 4]
and edx, 0xffff
cmp edx, 0xe
jne 0x402f50
cmp dword [0x43553c], 0xffffffff
je 0x402f6f
mov eax, dword [ebp - 4]
and eax, 0xffff
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
push ecx
push 0x22
push 1
call fcn.0040c770
add esp, 0xc
mov eax, 0x80004005
jmp 0x402f81
jmp 0x402f7f
mov eax, 0x80004005
jmp 0x402f81
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x403c20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0x430884
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.00401310
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x403c70
mov ecx, dword [ebp - 4]
add ecx, 4
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0xc]
call fcn.00405190
push eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.00406660
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x403d70
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0x430884
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.00405f20
movzx ecx, al
test ecx, ecx
jne 0x403da4
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.004013a0
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.00401880
mov esp, ebp
pop ebp
ret