joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c1d
Capabilities:
Log keystrokes

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetForegroundWindow]
push esi
push edi
call ebp
mov esi, dword [esp + 0x18]
cmp eax, esi
je 0x401cce
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0
push esi
call edi
mov ebx, eax
push 0
mov dword [esp + 0x14], ebx
call ebp
push eax
call edi
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x401cdc
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push ebx
call edi
mov ebx, dword [sym.imp.USER32.dll_BringWindowToTop]
push esi
call ebx
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push dword [esp + 0x1c]
push dword [esp + 0x18]
call edi
call ebp
cmp eax, esi
je 0x401cc9
mov edi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
xor ebp, ebp
lea eax, [esp + 0x18]
push ebp
push eax
push ebp
push 0x2000
call edi
push 2
push ebp
push ebp
mov ebp, 0x2001
push ebp
call edi
push esi
call ebx
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
call dword [sym.imp.USER32.dll_SetFocus]
lea eax, [esp + 0x18]
push 2
push eax
push 0
push ebp
call edi
jmp 0x401cdc
push esi
call ebx
jmp 0x401cd5
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
push esi
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x402f81
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402f9e
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402fad
mov ebx, 0x40e8c0
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402fc2
mov ecx, dword [0x423778]
add ecx, eax
push ecx
call fcn.00403173
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.0040315d
test eax, eax
je 0x403114
test byte [ebp + 0x17], 0x80
je 0x4030fd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40a830
mov dword [ebp - 0xc], eax
call fcn.004063ec
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x403153
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403012
mov esi, dword [ebp + 0x14]
mov edi, 0x40a8c0
push esi
push edi
call fcn.0040315d
test eax, eax
je 0x403114
sub dword [ebp + 0x14], esi
mov dword [0x40a848], edi
mov dword [0x40a84c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40a830
mov dword [0x40a850], ebx
mov dword [0x40a854], eax
call fcn.0040640c
test eax, eax
mov dword [ebp - 0x10], eax
jl 0x4030f5
mov esi, dword [0x40a850]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x4237d4], 1
mov edi, eax
je 0x4030b4
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x403081
cmp dword [ebp + 0x14], 0
jne 0x4030b4
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x50]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
push 0
call fcn.00405056
mov dword [ebp - 0xc], edi
test esi, esi
je 0x4030e9
cmp dword [ebp + 0x10], 0
jne 0x4030d1
push esi
push ebx
push dword [ebp + 0xc]
call fcn.00405b6f
test eax, eax
je 0x4030f9
add dword [ebp - 4], esi
jmp 0x4030dd
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40a850]
cmp dword [ebp - 0x10], 1
jne 0x403035
jmp 0x403153
cmp dword [ebp + 0x14], 0
jg 0x403005
jmp 0x403153
push 0xfffffffffffffffc
jmp 0x403116
push 0xfffffffffffffffe
jmp 0x403116
test edi, edi
je 0x403148
cmp dword [ebp + 0x14], esi
jge 0x403109
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.0040315d
test eax, eax
jne 0x403150
push 0xfffffffffffffffd
pop eax
jmp 0x403156
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x403124
mov esi, dword [ebp + 0x14]
mov edi, 0x40a8c0
push esi
push edi
call fcn.0040315d
test eax, eax
je 0x403114
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405b6f
test eax, eax
je 0x4030f9
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403119
jmp 0x403153
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40551c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x407374
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x407364
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40556d
xor eax, eax
jmp 0x405594
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405594
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x405569
call esi
pop esi
leave
ret 4

Function at 0x4055ce
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x421510], 0x44
push eax
xor eax, eax
push 0x421510
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40560d
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405611
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
ret 4

Function at 0x4056af
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405aa3
mov edi, eax
cmp edi, 0xffffffff
je 0x4056f0
test byte [esp + 0x10], 1
push esi
je 0x4056d2
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x4056d8
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4056e1
xor eax, eax
inc eax
jmp 0x4056f2
test byte [esp + 0x10], 4
jne 0x4056f0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x4056f7
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.004059b5
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405736
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4237a8], eax
jmp 0x4058c0
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405750
test eax, eax
je 0x40586e
test bl, 2
je 0x40586e
mov esi, 0x420d10
push edi
push esi
call fcn.00405f2f
cmp dword [ebp + 8], 0
je 0x40576f
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405775
push edi
call fcn.0040590e
cmp byte [edi], 0
jne 0x405783
cmp byte [0x420d10], 0x5c
jne 0x40578e
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x405864
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.004058f2
cmp byte [eax], 0
je 0x4057d4
cmp byte [ebp - 0x1c], 0
je 0x4057d4
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x4057ea
mov al, byte [esi + 1]
test al, al
je 0x405843
cmp al, 0x2e
jne 0x4057ea
cmp byte [esi + 2], 0
je 0x405843
push esi
push ebx
call fcn.00405f2f
test byte [ebp - 0x14c], 0x10
je 0x40580f
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405843
push dword [ebp + 0xc]
push edi
call fcn.004056f7
jmp 0x405843
push dword [ebp - 4]
push edi
call fcn.004056af
test eax, eax
jne 0x40583b
cmp dword [ebp - 4], eax
je 0x405833
push edi
push 0xfffffffffffffff1
call fcn.00405056
push 0
push edi
call fcn.00405d0e
jmp 0x405843
inc dword [0x4237a8]
jmp 0x405843
push edi
push 0xfffffffffffffff2
call fcn.00405056
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4057b2
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x40586e
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4058c0
cmp dword [ebp - 0xc], esi
jne 0x405882
inc dword [0x4237a8]
jmp 0x4058c0
push edi
call fcn.00406232
test eax, eax
je 0x4058c0
push edi
call fcn.004058c7
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004056af
test eax, eax
jne 0x4058b8
cmp dword [ebp - 4], esi
je 0x40587a
push edi
push 0xfffffffffffffff1
call fcn.00405056
push esi
push edi
call fcn.00405d0e
jmp 0x4058c0
push edi
push 0xffffffffffffffe5
call fcn.00405056
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4059b5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421110
push esi
call fcn.00405f2f
push esi
call fcn.00405960
mov edi, eax
test edi, edi
jne 0x4059d6
xor eax, eax
jmp 0x405a28
push edi
call fcn.00406199
test byte [0x42371c], 0x80
je 0x4059ef
mov al, byte [edi]
test al, al
je 0x4059d2
cmp al, 0x5c
je 0x4059d2
sub edi, esi
jmp 0x405a07
call fcn.00406232
test eax, eax
je 0x405a01
test byte [eax], 0x10
je 0x4059d2
push esi
call fcn.0040590e
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x4059f3
call fcn.004058c7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405aa3
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405ac2
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x405ac8
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405af7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x4093b4]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405b3c
test edi, edi
jne 0x405b02
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405b36
Function at 0x405b9e
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x421a98], 0x4c554e
mov edi, 0x400
mov ebp, 0x421a98
je 0x405bea
push 1
push 0
push esi
call fcn.00405ac8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405d09
cmp eax, edi
jg 0x405d09
mov esi, 0x421e98
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405d09
cmp eax, edi
jg 0x405d09
push esi
push ebp
push str._s_s_r_n
push 0x421698
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x423714]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405f51
push 4
push 0xc0000000
push esi
call fcn.00405ac8
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x405d09
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405d02
push edi
push esi
push ebp
call fcn.00405b40
test eax, eax
je 0x405d02
push str._Rename__r_n
push esi
call fcn.00405a2d
test eax, eax
jne 0x405ca0
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405cd5
add eax, 0xa
push 0x4093b8
push eax
call fcn.00405a2d
mov ebp, eax
test ebp, ebp
je 0x405cd1
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405cc2
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405cbc
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405cd7
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x421698
push eax
call fcn.00405a83
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405b6f
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405d0e
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x405d31
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405b9e
pop ecx
pop ecx
inc dword [0x4237b0]
ret 8

Function at 0x405e16
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x400
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405db5
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x405e85
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and byte [esi + 0x3ff], 0
test edi, edi
pop edi
jne 0x405e85
cmp dword [ebp + 0xc], 1
je 0x405e88
cmp dword [ebp + 0xc], 2
je 0x405e88
and byte [esi], 0
pop esi
leave
ret 0x14
Function at 0x406259
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x40627d
xor eax, eax
test eax, eax
je 0x40628f
cmp byte [ebp + eax - 0x121], 0x5c
je 0x40628f
xor ecx, ecx
jmp 0x406292
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x40637e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42229c], 0
push esi
jne 0x4063b5
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40638f
mov dword [ecx*4 + 0x422298], eax
inc ecx
cmp ecx, 0x100
jl 0x40638a
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4063e6
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422298]
xor eax, esi
inc ecx
dec edx
jne 0x4063c8
pop edi
not eax
pop esi
ret 0xc
Function at 0x42b329
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov al, byte [ecx]
and dword [esp + 0x14], 0
push ebx
push ebp
mov byte [edx], al
lea eax, [edx + 1]
push esi
mov dword [esp + 0x18], eax
push edi
mov dword [esp + 0x14], edx
mov esi, dword [esp + 0x14]
lea eax, [ecx + 1]
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
call fcn.0042b2d2
test eax, eax
je 0x42b482
lea ecx, [esp + 0x18]
call fcn.0042b2d2
lea ecx, [esp + 0x18]
test eax, eax
je 0x42b3f1
call fcn.0042b2d2
test eax, eax
je 0x42b3b3
push 4
xor edi, edi
pop ebx
lea ecx, [esp + 0x18]
call fcn.0042b2d2
lea edi, [eax + edi*2]
dec ebx
jne 0x42b389
mov edx, dword [esp + 0x1c]
test edi, edi
je 0x42b3aa
mov eax, edx
sub eax, edi
mov al, byte [eax]
mov byte [edx], al
jmp 0x42b3ad
mov byte [edx], 0
inc edx
jmp 0x42b494
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
movzx esi, byte [eax]
mov ecx, esi
and ecx, 1
inc eax
add ecx, 2
shr esi, 1
mov dword [esp + 0x18], eax
je 0x42b3e9
test ecx, ecx
je 0x42b47d
mov edi, edx
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x42b3db
jmp 0x42b479
xor ebp, ebp
inc ebp
jmp 0x42b47d
call fcn.0042b308
test edi, edi
jne 0x42b426
cmp eax, 2
jne 0x42b421
lea ecx, [esp + 0x18]
call fcn.0042b308
mov edx, dword [esp + 0x1c]
mov edi, eax
test edi, edi
je 0x42b47d
mov ecx, edx
sub ecx, esi
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
dec edi
jne 0x42b416
jmp 0x42b479
sub eax, 3
jmp 0x42b429
sub eax, 2
mov ecx, dword [esp + 0x18]
mov esi, eax
movzx eax, byte [ecx]
shl esi, 8
add esi, eax
inc ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
call fcn.0042b308
mov ecx, eax
cmp esi, 0x7d00
jb 0x42b450
inc ecx
cmp esi, 0x500
jb 0x42b459
inc ecx
cmp esi, 0x80
jae 0x42b464
add ecx, 2
mov edx, dword [esp + 0x1c]
test ecx, ecx
je 0x42b47d
mov edi, edx
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x42b470
mov dword [esp + 0x1c], edx
xor edi, edi
inc edi
jmp 0x42b49a
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
mov dword [esp + 0x18], ecx
xor edi, edi
mov dword [esp + 0x1c], edx
test ebp, ebp
je 0x42b359
sub edx, dword [esp + 0x14]
pop edi
mov eax, edx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42b61f
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, edi
shr ebx, 2
and edi, 3
mov esi, ecx
test ebx, ebx
je 0x42b651
mov al, byte [esp + 0x14]
mov edx, dword [esi]
add al, bl
movzx ecx, al
mov eax, dword [esp + 0x10]
ror edx, cl
xor edx, eax
sub edx, ebx
mov dword [esi], edx
add esi, 4
dec ebx
jne 0x42b632
jmp 0x42b655
mov eax, dword [esp + 0x10]
test edi, edi
je 0x42b65f
xor byte [esi], al
inc esi
dec edi
jne 0x42b659
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x401360
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x134
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
push ebp
push esi
push edi
push 0x128
xor ebx, ebx
lea eax, [esp + 0x14]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [esp + 0x10], 0x128
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push ebx
push 2
mov ebp, eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
test edi, edi
je 0x4013c1
lea ecx, [esp + 0x10]
push ecx
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x4013c8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x401484
mov ecx, str.FG6_System.exe
lea eax, [esp + 0x34]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4013f1
test dl, dl
je 0x4013ed
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4013f1
add eax, 2
add ecx, 2
test dl, dl
jne 0x4013d1
xor eax, eax
jmp 0x4013f6
sbb eax, eax
sbb eax, 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x401410
push edi
mov ebx, 1
call esi
jmp 0x40145a
lea edx, [esp + 0x10]
push edx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40145a
mov ecx, str.FG6_System.exe
lea eax, [esp + 0x34]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401448
test dl, dl
je 0x401444
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401448
add eax, 2
add ecx, 2
test dl, dl
jne 0x401428
xor eax, eax
jmp 0x40144d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401410
cmp dword [esp + 0x18], ebp
je 0x401410
lea ebx, [eax + 1]
push edi
call esi
test ebx, ebx
je 0x40147f
push str.TCP_IP_config
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x40147f
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, 1
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00402d9c
add esp, 0x134
ret

Function at 0x4014a0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
sub esp, 0x10c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x108], eax
push 0x104
lea eax, [esp + 8]
push 0
push eax
mov dword [esp + 0xc], 0
call sub.MSVCR90.dll_memset
mov edx, dword [0x406454]
add esp, 0xc
push 0x104
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401541
lea eax, [esp + 4]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401510
sub eax, edx
mov edx, dword [esp]
inc eax
push eax
lea ecx, [esp + 8]
push ecx
push 1
push 0
push str.FG6_SYSTEM
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x401558
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00402d9c
add esp, 0x10c
ret
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x108]
xor ecx, esp
mov eax, 1
call fcn.00402d9c
add esp, 0x10c
ret
Function at 0x401580
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push connect
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4015c5
mov ecx, dword [esp]
push str.FG6_SYSTEM
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x4015c9
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ecx
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ecx
ret

Function at 0x401d80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebp
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push str.SOFTWAREFG6Parameter
mov ebp, 4
push connect
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401dc8
xor eax, eax
pop ebp
add esp, 0x10
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push str.portR
push ecx
call esi
test eax, eax
je 0x401e03
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
pop ebp
add esp, 0x10
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0xc]
push edx
push 0x406458
mov dword [ecx], eax
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push 0
push 0x404420
push ecx
mov dword [esp + 0x24], 0x104
call esi
mov edx, dword [esp + 8]
test eax, eax
jne 0x401df4
lea eax, [esp + 0xc]
push eax
push 0x406560
lea ecx, [esp + 0x18]
push ecx
push 0
push str.localDir
push edx
mov dword [esp + 0x24], 0x104
call esi
test eax, eax
mov eax, dword [esp + 8]
je 0x401e72
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
pop ebp
add esp, 0x10
ret
lea ecx, [esp + 0xc]
push ecx
push 0x406668
lea edx, [esp + 0x18]
push edx
push 0
push str.localName
push eax
mov dword [esp + 0x24], 0x104
call esi
test eax, eax
je 0x401eaa
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
pop ebp
add esp, 0x10
ret
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push str.DestIp
push edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call esi
test eax, eax
mov eax, dword [esp + 8]
push eax
jne 0x401e9c
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [edx], ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, 1
pop ebp
add esp, 0x10
ret