joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4011f0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
neg eax
add edi, 0x46
sub esi, 0x12
bswap eax
and eax, 0x87
add eax, 0xc0
mov eax, 0x67
not edi
not edx
ror edi, 0x9c
sub edi, 0x68
imul eax
neg esi
mov edi, 0x56
dec edi
rcl ebx, 0x38
add edx, 0x33
dec edx
rol esi, 0x46
imul ebx
sub edx, 0x7f
not esi
or edx, 0x98
neg edi
inc ebx
or edi, 0xbc
neg ebx
neg edi
sbb esi, 0xa9
dec edx
bswap edi
and esi, 1
and edi, 0x68
neg edx
neg edx
imul edi
inc eax
mov eax, 0x99
imul edi
add esi, 0xe0
not eax
mov eax, 0x2a
bswap esi
neg edi
inc esi
bswap eax
and esi, 0xd
rol edx, 0xfc
not edi
rcl eax, 9
xor ecx, ecx
xor edi, edi
or edx, 0x55
not eax
rcl edi, 0x64
sbb edi, 0x5c
bswap esi
bswap edi
rcr eax, 0xdd
bswap edi
imul edi
rol edx, 0x72
mov edi, 0xef
rcl edx, 0xf8
neg edx
bswap eax
neg eax
ror eax, 0x54
inc esi
bswap edx
dec esi
rcl ebx, 0x41
dec ebx
mov eax, 0x4d
sub esi, 0x3c
bswap esi
or edi, 0xd3
and edi, 0x75
mov edx, 0xd3
bswap ebx
or esi, 0x8c
rcl edi, 0x88
imul edi
rol eax, 0xe6
sub eax, 0xb4
add edi, 0xfb
neg eax
neg edi
not esi
dec ebx
bswap edi
imul edi
inc esi
or eax, 0x3a
mov eax, 0x6b
mov eax, 0x2e
rcl eax, 0x80
dec ebx
bswap edi
rcr ebx, 0x97
dec edx
neg eax
mov ecx, dword [ebp + 0xc]
rol eax, 0x43
sub eax, 0xeb
mov esi, 3
bswap edi
rcr esi, 0x21
neg edi
inc eax
rol edx, 0x50
rol eax, 0x16
sub ebx, 0xce
not ebx
inc ebx
sbb eax, 0xc7
rol eax, 0xa0
rcr edi, 0x3e
imul ebx
dec edx
ror eax, 0xcc
not eax
imul edi
dec edi
or edi, 0x3f
rcr edi, 0xa4
neg eax
sbb esi, 0x21
imul edi
not eax
neg edx
inc esi
mov eax, 0x17
dec ebx
imul eax
not edi
sbb esi, 0x9a
imul edi
neg esi
rcr edx, 0x7a
and ebx, 0x82
mov esi, 0xa3
rol esi, 0xdf
sbb edi, 0x76
neg ebx
rcl edi, 0xe6
bswap ebx
dec edi
imul eax
add esi, 0xab
rcl ebx, 0x62
rol edx, 0xe6
and esi, 0x9a
mov edi, dword [ebp + 8]
mov ebx, eax
mov esi, eax
xor ebx, eax
not byte [edi]
xor eax, ebx
xor ebx, ebx
xor eax, ebx
sub byte [edi], 0x88
mov ebx, ebx
mov ebx, esi
xor esi, esi
add byte [edi], 0x49
xor esi, esi
mov esi, eax
mov ebx, esi
imul byte [edi]
inc edi
loop 0x4013ad
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4076e4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4108f0]
jne 0x4076ee
repz ret
jmp fcn.0040b64c
Function at 0x408053
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040597a
and dword [ebp - 4], 0
cmp dword [0x4115d4], 0
mov ebx, eax
jne 0x408104
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4081b5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4081b5
push eax
call fcn.00405908
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4115d4], eax
call esi
push eax
call fcn.00405908
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4115d8], eax
call esi
push eax
call fcn.00405908
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4115dc], eax
call esi
push eax
call fcn.00405908
pop ecx
mov dword [0x4115e4], eax
test eax, eax
je 0x408104
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405908
pop ecx
mov dword [0x4115e0], eax
mov eax, dword [0x4115e0]
cmp eax, ebx
je 0x40815c
cmp dword [0x4115e4], ebx
je 0x40815c
push eax
call fcn.00405983
push dword [0x4115e4]
mov esi, eax
call fcn.00405983
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40815c
test edi, edi
je 0x40815c
call esi
test eax, eax
je 0x408153
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408153
test byte [ebp - 0xc], 1
jne 0x40815c
or dword [ebp + 0x10], 0x200000
jmp 0x408195
mov eax, dword [0x4115d8]
cmp eax, ebx
je 0x408195
push eax
call fcn.00405983
pop ecx
test eax, eax
je 0x408195
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408195
mov eax, dword [0x4115dc]
cmp eax, ebx
je 0x408195
push eax
call fcn.00405983
pop ecx
test eax, eax
je 0x408195
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4115d4]
call fcn.00405983
pop ecx
test eax, eax
je 0x4081b5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4081b7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4030fa
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
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 0x40311a
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x40312c
mov dword [ebp - 0xc], 0x42c200
mov eax, dword [ebp + 8]
test eax, eax
jl 0x403141
mov ecx, dword [0x47af58]
add ecx, eax
push ecx
call fcn.0040332b
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403315
test eax, eax
je 0x403303
test byte [ebp + 0x17], 0x80
je 0x4032ae
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
and dword [0x41eb64], 0
and dword [0x41eb60], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, 0x4201e8
mov dword [0x41e648], 8
mov dword [0x4281f0], eax
mov dword [0x4281ec], eax
mov eax, dword [ebp + 0x14]
mov dword [0x4281e8], 0x4281e8
mov dword [ebp + 8], eax
jle 0x40330b
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x4031ba
mov esi, dword [ebp + 0x14]
mov edi, 0x428200
push esi
push edi
call fcn.00403315
test eax, eax
je 0x403303
sub dword [ebp + 0x14], esi
mov dword [0x41e638], edi
mov dword [0x41e63c], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x41e638
mov dword [0x41e640], edi
mov dword [0x41e644], eax
call fcn.004067bd
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x4032a6
mov esi, dword [0x41e640]
sub esi, edi
call ebx
test byte [0x47afb4], 1
mov edi, eax
je 0x403261
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x403228
cmp dword [ebp + 0x14], 0
jne 0x403261
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 - 0x94]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
push 0
call fcn.004052e6
mov dword [ebp - 0x10], edi
test esi, esi
je 0x40329a
cmp dword [ebp + 0x10], 0
jne 0x403280
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.00405e26
test eax, eax
je 0x4032aa
add dword [ebp - 4], esi
jmp 0x40328e
mov eax, dword [0x41e640]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 1
jne 0x4031dd
jmp 0x40330b
cmp dword [ebp + 0x14], 0
jg 0x4031ad
jmp 0x40330b
push 0xfffffffffffffffc
jmp 0x403305
push 0xfffffffffffffffe
jmp 0x403305
test edi, edi
jne 0x4032f0
cmp dword [ebp + 0x14], edi
jle 0x40330b
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x4032c4
mov esi, ebx
mov edi, 0x428200
push esi
push edi
call fcn.00403315
test eax, eax
je 0x403303
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405e26
test eax, eax
je 0x4032aa
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x4032ba
jmp 0x40330b
cmp dword [ebp + 0x14], esi
jge 0x4032f8
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403315
test eax, eax
jne 0x403308
push 0xfffffffffffffffd
pop eax
jmp 0x40330e
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4057b5
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f0
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], 0x4083e0
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405806
xor eax, eax
jmp 0x40582d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x40582d
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x405802
call esi
pop esi
leave
ret 4

Function at 0x405867
Capabilities:
Create process on windows

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

Function at 0x4058aa
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_ShellExecuteExW]
ret 4

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405d4f
mov edi, eax
cmp edi, 0xffffffff
je 0x405989
test byte [esp + 0x10], 1
push esi
je 0x40596b
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405971
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40597a
xor eax, eax
inc eax
jmp 0x40598b
test byte [esp + 0x10], 4
jne 0x405989
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405990
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
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.00405c5b
test bl, 8
mov dword [ebp - 8], eax
je 0x4059cf
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x47af88], eax
jmp 0x405b4c
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4059e9
test eax, eax
je 0x405afa
test bl, 2
je 0x405afa
mov esi, 0x460250
push edi
push esi
call fcn.00406282
cmp dword [ebp + 8], 0
je 0x405a08
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405a0e
push edi
call fcn.00405b9f
cmp word [edi], 0
jne 0x405a1e
cmp word [0x460250], 0x5c
jne 0x405a29
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405aef
cmp word [ebp - 0x22c], 0x2e
jne 0x405a73
cmp word [ebp - 0x22a], 0
je 0x405ad2
cmp word [ebp - 0x22a], 0x2e
jne 0x405a73
cmp word [ebp - 0x228], 0
je 0x405ad2
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406282
test byte [ebp - 0x258], 0x10
je 0x405a9e
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405ad2
push dword [ebp + 0xc]
push edi
call fcn.00405990
jmp 0x405ad2
push dword [ebp - 4]
push edi
call fcn.00405948
test eax, eax
jne 0x405aca
cmp dword [ebp - 4], eax
je 0x405ac2
push edi
push 0xfffffffffffffff1
call fcn.004052e6
push 0
push edi
call fcn.00406048
jmp 0x405ad2
inc dword [0x47af88]
jmp 0x405ad2
push edi
push 0xfffffffffffffff2
call fcn.004052e6
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405a4b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405afa
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405b4c
cmp dword [ebp - 8], esi
jne 0x405b0e
inc dword [0x47af88]
jmp 0x405b4c
push edi
call fcn.004065c5
test eax, eax
je 0x405b4c
push edi
call fcn.00405b53
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405948
test eax, eax
jne 0x405b44
cmp dword [ebp - 4], esi
je 0x405b06
push edi
push 0xfffffffffffffff1
call fcn.004052e6
push esi
push edi
call fcn.00406048
jmp 0x405b4c
push edi
push 0xffffffffffffffe5
call fcn.004052e6
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405c5b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x464250
push esi
call fcn.00406282
push esi
call fcn.00405bfe
mov edi, eax
test edi, edi
jne 0x405c7c
xor eax, eax
jmp 0x405cd4
push edi
call fcn.00406516
test byte [0x47aefc], 0x80
je 0x405c99
mov ax, word [edi]
test ax, ax
je 0x405c78
cmp ax, 0x5c
je 0x405c78
sub edi, esi
sar edi, 1
jmp 0x405cb3
call fcn.004065c5
test eax, eax
je 0x405cad
test byte [eax], 0x10
je 0x405c78
push esi
call fcn.00405b9f
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405c9f
call fcn.00405b53
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

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

Function at 0x405d74
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
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_CreateFileW]
ret 0xc

Function at 0x405da3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a558]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a55c]
mov dword [ebp - 4], 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 word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405df3
test edi, edi
jne 0x405db0
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405ded
Function at 0x405ece
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x4688e8], 0x55004e
mov dword [0x4688ec], 0x4c
mov edi, 0x400
mov ebp, 0x4688e8
je 0x405f24
push 1
push 0
push esi
call fcn.00405d74
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406043
cmp eax, edi
jg 0x406043
mov esi, 0x4690e8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406043
cmp eax, edi
jg 0x406043
push esi
push ebp
push str._ls_ls_r_n
push 0x4684e8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x47aef4]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004062a4
push 4
push 0xc0000000
push esi
call fcn.00405d74
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x406043
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 0x40603c
push edi
push esi
push ebp
call fcn.00405df7
test eax, eax
je 0x40603c
push str._Rename__r_n
push esi
call fcn.00405cd9
test eax, eax
jne 0x405fda
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40600f
add eax, 0xa
push 0x40a560
push eax
call fcn.00405cd9
mov ebp, eax
test ebp, ebp
je 0x40600b
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405ffc
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405ff6
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x406011
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4684e8
push eax
call fcn.00405d2f
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.00405e26
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 0x406048
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40606b
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405ece
pop ecx
pop ecx
inc dword [0x47af90]
ret 8
Function at 0x406150
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], 0x4000
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004060ef
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x4061c0
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_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [esi + 0x3ffe], 0
test edi, edi
pop edi
jne 0x4061c0
cmp dword [ebp + 0xc], 1
je 0x4061c4
cmp dword [ebp + 0xc], 2
je 0x4061c4
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x4065ec
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406610
xor eax, eax
test eax, eax
je 0x406623
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406623
xor ecx, ecx
jmp 0x406626
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x406786
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 0x406760
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x40675b
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067b7
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 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x406799
pop edi
not eax
pop esi
ret 0xc
Function at 0x405590
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4055ae
or eax, eax
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
mov dword [esp + 0xc], eax
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 4]
push 0x10
push edx
push esi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4055ef
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x456d90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x48000]
push edi
jmp 0x456daa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x456db1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x456da0
mov eax, 1
add ebx, ebx
jne 0x456dc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x456db8
jne 0x456dd4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x456db8
xor ecx, ecx
sub eax, 3
jb 0x456de8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x456e5a
mov ebp, eax
add ebx, ebx
jne 0x456df3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x456e00
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x456e24
inc ecx
add ebx, ebx
jne 0x456e10
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x456e05
jne 0x456e21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x456e05
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x456e44
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x456e35
jmp 0x456da6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x456e44
add edi, ecx
jmp 0x456da6
pop esi
mov edi, esi
mov ecx, 0x6f7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x456e62
cmp byte [edi], 6
jne 0x456e62
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 al, bl
loop 0x456e67
lea edi, [esi + 0x42000]
mov eax, dword [edi]
or eax, eax
je 0x456ed6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x57970]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x57bb4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x456e94
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x57bb8]
or eax, eax
je 0x456ed0
mov dword [ebx], eax
add ebx, 4
jmp 0x456eb1
call dword [esi + 0x57bc8]
mov ebp, dword [esi + 0x57bbc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x456f0a
sub esp, 0xffffff80
jmp 0x414598